* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #060a14;
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #0b1120 0%, #060a14 60%);
}

/* Ambient glow blobs, jaise landing page pe hai */
.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.auth-glow-1 {
    width: 420px;
    height: 420px;
    background: rgba(59, 130, 246, 0.22);
    top: -120px;
    left: -100px;
}
.auth-glow-2 {
    width: 380px;
    height: 380px;
    background: rgba(96, 165, 250, 0.16);
    bottom: -140px;
    right: -100px;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    background: rgba(15, 22, 41, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.auth-logo {
    text-align: center;
    margin-bottom: 22px;
}

.auth-logo h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.logo-cpay { color: #f5f7fb; }
.logo-gateway { color: #5b9dff; }

.auth-logo p {
    margin-top: 8px;
    color: #8b93a7;
    font-size: 13.5px;
}

.auth-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(91, 157, 255, 0.1);
    border: 1px solid rgba(91, 157, 255, 0.35);
    color: #7fb3ff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 auto 24px;
    width: fit-content;
}
.badge-dot { color: #ff9f43; font-size: 12px; }

.auth-title {
    margin-bottom: 24px;
    text-align: center;
}

.auth-title h2 {
    font-size: 23px;
    font-weight: 700;
    color: #f5f7fb;
    margin-bottom: 6px;
}

.auth-title p {
    font-size: 13.5px;
    color: #8b93a7;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #cfd6e6;
}

.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    outline: none;
    font-size: 14px;
    color: #f5f7fb;
    background: rgba(255, 255, 255, 0.04);
    transition: 0.2s;
}

.form-group input::placeholder {
    color: #5c637a;
}

.form-group input:focus {
    border-color: #5b9dff;
    box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember input {
    width: 15px;
    height: 15px;
    accent-color: #5b9dff;
}

.remember label {
    font-size: 13px;
    color: #8b93a7;
    cursor: pointer;
}

.auth-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #5b9dff, #3b82f6);
    color: #06101f;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 24px rgba(91, 157, 255, 0.35);
}

.auth-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13.5px;
    color: #8b93a7;
}

.auth-footer a {
    color: #5b9dff;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 9px;
    margin-bottom: 20px;
    font-size: 13px;
}

.auth-alert.success {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: #4ade80;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px;
    }
    .auth-title h2 {
        font-size: 20px;
    }
    .auth-glow-1, .auth-glow-2 {
        width: 260px;
        height: 260px;
    }
}


/* register */
/* =========================================================
   REGISTER PAGE EXTRA FIELDS
   ========================================================= */

.form-group input,
.form-group select,
.form-group textarea {
    font-family: inherit;
}

/* Select */
.form-group select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    outline: none;
    font-size: 14px;
    color: #f5f7fb;
    background: #11182a;
    transition: 0.2s;
    cursor: pointer;
}

.form-group select:focus {
    border-color: #5b9dff;
    box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.15);
}

/* Select options */
.form-group select option {
    background: #11182a;
    color: #f5f7fb;
}

/* Textarea */
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    min-height: 90px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    outline: none;
    resize: vertical;
    font-size: 14px;
    color: #f5f7fb;
    background: rgba(255, 255, 255, 0.04);
    transition: 0.2s;
}

.form-group textarea::placeholder {
    color: #5c637a;
}

.form-group textarea:focus {
    border-color: #5b9dff;
    box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

/* Required star */
.form-group label span {
    color: #ff6b6b;
}

/* Error text */
.form-error {
    margin-top: 6px;
    color: #f87171;
    font-size: 12px;
}


/* =========================================================
   REGISTER PAGE
   ========================================================= */



.form-group select {
    width: 100%;
    height: 46px;
    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 9px;

    outline: none;

    font-size: 14px;

    color: #f5f7fb;

    background: #0f1629;

    transition: 0.2s;

    cursor: pointer;
}


.form-group select:focus {

    border-color: #5b9dff;

    box-shadow:
        0 0 0 3px rgba(91, 157, 255, 0.15);

}


.form-group select option {

    background: #0f1629;

    color: #f5f7fb;

}

.form-group select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    outline: none;
    font-size: 14px;
    color: #f5f7fb;
    background: #11182b;
    transition: 0.2s;
    cursor: pointer;
}

.form-group select:focus {
    border-color: #5b9dff;
    box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.15);
}

.form-group select option {
    background: #11182b;
    color: #f5f7fb;
}


/* popup */
/* =====================================================
   REGISTRATION SUCCESS TOP MODAL
===================================================== */

.registration-popup {

    position: fixed;

    top: 18px;
    left: 50%;

    transform: translateX(-50%);

    width: calc(100% - 30px);
    max-width: 720px;

    padding: 18px 20px;

    background: rgba(15, 22, 41, 0.98);

    border: 1px solid rgba(91, 157, 255, 0.35);

    border-radius: 14px;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(91, 157, 255, 0.08);

    backdrop-filter: blur(18px);

    z-index: 99999;

    animation: registrationPopupShow 0.3s ease;

}


/* =====================================================
   HEADER
===================================================== */

.registration-popup-header {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 15px;

}


/* =====================================================
   SUCCESS ICON
===================================================== */

.registration-success-icon {

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(34, 197, 94, 0.12);

    border: 1px solid rgba(34, 197, 94, 0.35);

    color: #4ade80;

    font-size: 20px;

    font-weight: 800;

}


/* =====================================================
   TITLE
===================================================== */

.registration-popup-title {

    flex: 1;

}

.registration-popup-title strong {

    display: block;

    color: #f5f7fb;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 3px;

}

.registration-popup-title span {

    display: block;

    color: #8b93a7;

    font-size: 11px;

}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.registration-popup-close {

    width: 32px;
    height: 32px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,0.06);

    color: #8b93a7;

    font-size: 21px;

    line-height: 1;

    cursor: pointer;

    transition: 0.2s ease;

}

.registration-popup-close:hover {

    background: rgba(239,68,68,0.12);

    color: #f87171;

}


/* =====================================================
   CREDENTIALS
===================================================== */

.registration-credentials {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-bottom: 14px;

}


/* =====================================================
   CREDENTIAL FIELD
===================================================== */

.registration-credential label {

    display: block;

    margin-bottom: 6px;

    color: #aeb7c9;

    font-size: 11px;

    font-weight: 600;

}


/* =====================================================
   CREDENTIAL INPUT
===================================================== */

.credential-input {

    height: 40px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding-left: 11px;

    background: rgba(255,255,255,0.045);

    border: 1px solid rgba(255,255,255,0.09);

    border-radius: 8px;

}


/* Credential text */

.credential-input span {

    flex: 1;

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #f5f7fb;

    font-size: 12px;

}


/* =====================================================
   COPY BUTTON
===================================================== */

.credential-input button {

    height: 32px;

    flex-shrink: 0;

    margin-right: 4px;

    padding: 0 13px;

    border: 1px solid rgba(91,157,255,0.35);

    border-radius: 6px;

    background: rgba(91,157,255,0.10);

    color: #7fb3ff;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;

}


.credential-input button:hover {

    background: rgba(91,157,255,0.20);

    border-color: rgba(91,157,255,0.55);

}


.credential-input button.copied {

    background: rgba(34,197,94,0.12);

    border-color: rgba(34,197,94,0.35);

    color: #4ade80;

}


/* =====================================================
   CONTINUE TO LOGIN
===================================================== */

.registration-login-btn {

    width: 100%;

    height: 40px;

    border: none;

    border-radius: 8px;

    background: linear-gradient(
        135deg,
        #5b9dff,
        #3b82f6
    );

    color: #06101f;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;

}


.registration-login-btn:hover {

    filter: brightness(1.08);

    transform: translateY(-1px);

}


/* =====================================================
   POPUP ANIMATION
===================================================== */

@keyframes registrationPopupShow {

    from {

        opacity: 0;

        transform:
            translateX(-50%)
            translateY(-20px);

    }

    to {

        opacity: 1;

        transform:
            translateX(-50%)
            translateY(0);

    }

}


.popup-hide {

    opacity: 0 !important;

    transform:
        translateX(-50%)
        translateY(-20px) !important;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .registration-popup {

        top: 10px;

        width: calc(100% - 20px);

        padding: 15px;

    }

    .registration-credentials {

        grid-template-columns: 1fr;

        gap: 10px;

    }

}


@media (max-width: 480px) {

    .registration-popup-header {

        align-items: flex-start;

    }

    .registration-success-icon {

        width: 34px;
        height: 34px;

        font-size: 17px;

    }

    .registration-popup-title strong {

        font-size: 13px;

    }

    .registration-popup-title span {

        font-size: 10px;

    }

}

/* view password */
/* =====================================================
   PASSWORD SHOW / HIDE
===================================================== */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: transparent;

    color: #8b93a7;

    cursor: pointer;

    border-radius: 6px;

    font-size: 17px;

    transition: 0.2s ease;
}

.password-toggle:hover {
    background: rgba(91, 157, 255, 0.08);
    color: #5b9dff;
}

.password-toggle:focus {
    outline: none;
}