* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    background: #07111f;
    color: #eef5ff;
}


/* =========================================================
   BACKGROUND
========================================================= */

.auth-background {
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px 16px;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(45, 91, 220, .20),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(0, 190, 255, .12),
            transparent 35%
        ),
        #07111f;
}


.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.orb-one {
    width: 300px;
    height: 300px;
    background: rgba(39, 91, 230, .18);
    left: -120px;
    top: -100px;
}

.orb-two {
    width: 300px;
    height: 300px;
    background: rgba(0, 180, 255, .12);
    right: -120px;
    bottom: -120px;
}


/* =========================================================
   CONTAINER
========================================================= */

.auth-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 470px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom: 22px;
}

.brand-logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #3765ee,
            #6546e8
        );

    box-shadow:
        0 10px 30px
        rgba(46, 92, 235, .30);

    font-size: 17px;
    font-weight: 900;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 18px;
    line-height: 1.2;
}

.brand-text span {
    color: #8090a8;
    font-size: 12px;
    margin-top: 3px;
}


/* =========================================================
   CARD
========================================================= */

.auth-card {
    width: 100%;

    padding: 26px;

    border-radius: 20px;

    background:
        rgba(12, 27, 47, .94);

    border:
        1px solid
        rgba(255,255,255,.09);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.35);

    backdrop-filter: blur(20px);
}


.logged-card {
    text-align: center;
}


/* =========================================================
   TABS
========================================================= */

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 5px;

    padding: 5px;

    background: #071321;

    border-radius: 12px;

    margin-bottom: 24px;
}

.auth-tab {
    border: 0;

    padding: 11px;

    border-radius: 9px;

    background: transparent;

    color: #7789a3;

    cursor: pointer;

    font-size: 14px;
    font-weight: 700;

    transition: .2s;
}

.auth-tab:hover {
    color: #dce8fa;
}

.auth-tab.active {
    background: #1b4dd8;
    color: white;

    box-shadow:
        0 5px 18px
        rgba(27, 77, 216, .25);
}


/* =========================================================
   PANELS
========================================================= */

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.panel-heading {
    margin-bottom: 22px;
}

.panel-heading h1 {
    margin: 0;

    font-size: 26px;
    letter-spacing: -.5px;
}

.panel-heading p {
    margin: 7px 0 0;

    color: #7f91aa;

    font-size: 13px;
}


/* =========================================================
   MESSAGE
========================================================= */

.message {
    display: none;

    padding: 11px 13px;

    border-radius: 10px;

    margin-bottom: 16px;

    font-size: 13px;

    line-height: 1.45;
}

.message.error {
    display: block;

    color: #ffb4bc;

    background:
        rgba(220, 60, 80, .10);

    border:
        1px solid
        rgba(220, 60, 80, .18);
}

.message.success {
    display: block;

    color: #7ee5ac;

    background:
        rgba(50, 200, 120, .09);

    border:
        1px solid
        rgba(50, 200, 120, .16);
}


/* =========================================================
   FIELDS
========================================================= */

.field {
    margin-bottom: 17px;
}

.field label {
    display: block;

    margin-bottom: 7px;

    color: #aebed2;

    font-size: 12px;
    font-weight: 700;
}

.field input {
    width: 100%;

    height: 48px;

    border: 1px solid
        rgba(255,255,255,.10);

    outline: none;

    border-radius: 10px;

    background: #091827;

    color: white;

    padding: 0 14px;

    font-size: 14px;

    transition: .2s;
}

.field input::placeholder {
    color: #52657d;
}

.field input:focus {
    border-color: #3e70ed;

    box-shadow:
        0 0 0 3px
        rgba(62,112,237,.12);
}


/* =========================================================
   PHONE
========================================================= */

.phone-field {
    display: flex;

    align-items: center;

    height: 48px;

    border: 1px solid
        rgba(255,255,255,.10);

    border-radius: 10px;

    background: #091827;

    overflow: hidden;

    transition: .2s;
}

.phone-field:focus-within {
    border-color: #3e70ed;

    box-shadow:
        0 0 0 3px
        rgba(62,112,237,.12);
}

.phone-field span {
    display: flex;

    align-items: center;

    height: 100%;

    padding: 0 13px;

    color: #8ea0b9;

    font-size: 14px;

    border-right:
        1px solid
        rgba(255,255,255,.08);
}

.phone-field input {
    border: 0 !important;

    box-shadow: none !important;

    border-radius: 0 !important;

    height: 46px !important;
}


/* =========================================================
   BUTTON
========================================================= */

.primary-btn {
    width: 100%;

    min-height: 48px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #3264e8,
            #4d45d7
        );

    color: white;

    cursor: pointer;

    text-decoration: none;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 10px 25px
        rgba(50,100,232,.22);

    transition:
        transform .15s,
        filter .15s;
}

.primary-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}


/* =========================================================
   SECONDARY
========================================================= */

.secondary-btn {
    width: 100%;

    min-height: 46px;

    margin-top: 10px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 10px;

    background: #0b1a2c;

    color: #aebed2;

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;
}

.secondary-btn:hover {
    background: #10243b;
    color: white;
}


/* =========================================================
   OTP
========================================================= */

.hidden {
    display: none !important;
}

.otp-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 22px;
}

.otp-heading h3 {
    margin: 0;

    font-size: 19px;
}

.otp-heading p {
    margin: 4px 0 0;

    color: #778ba5;

    font-size: 12px;
}

.otp-heading p strong {
    color: #b9c9dc;
}

.back-btn {
    width: 38px;
    height: 38px;

    border-radius: 9px;

    border:
        1px solid
        rgba(255,255,255,.09);

    background: #0a1a2d;

    color: #dbe8f7;

    cursor: pointer;

    font-size: 17px;
}

.back-btn:hover {
    background: #122942;
}


.otp-inputs {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 8px;

    margin-bottom: 20px;
}

.otp-inputs input {
    width: 100%;

    height: 54px;

    text-align: center;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 10px;

    background: #091827;

    color: white;

    outline: none;

    font-size: 21px;
    font-weight: 800;
}

.otp-inputs input:focus {
    border-color: #3e70ed;

    box-shadow:
        0 0 0 3px
        rgba(62,112,237,.12);
}


.resend-btn {
    display: block;

    width: 100%;

    margin-top: 13px;

    padding: 9px;

    border: 0;

    background: transparent;

    color: #6d9cff;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
}

.resend-btn:hover {
    color: #91b5ff;
}


/* =========================================================
   SECURITY
========================================================= */

.security-note {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 21px;

    padding-top: 18px;

    border-top:
        1px solid
        rgba(255,255,255,.06);

    color: #657891;

    font-size: 11px;

    text-align: center;
}


/* =========================================================
   LOGGED USER
========================================================= */

.success-icon {
    width: 62px;
    height: 62px;

    margin: 5px auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(50,200,120,.12);

    border:
        1px solid
        rgba(50,200,120,.22);

    color: #57db91;

    font-size: 28px;
    font-weight: 900;
}

.logged-card h1 {
    margin: 0;

    font-size: 26px;
}

.subtitle {
    color: #788ba4;

    font-size: 13px;

    margin: 7px 0 20px;
}

.user-preview {
    display: flex;

    align-items: center;

    text-align: left;

    gap: 12px;

    padding: 14px;

    border-radius: 12px;

    background: #091827;

    border:
        1px solid
        rgba(255,255,255,.07);

    margin-bottom: 16px;
}

.avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #285be0;

    color: white;

    font-weight: 900;
}

.user-preview div:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.user-preview strong {
    font-size: 14px;
}

.user-preview span {
    color: #72859f;

    font-size: 12px;
}


/* =========================================================
   SPINNER
========================================================= */

.spinner {
    width: 15px;
    height: 15px;

    margin-right: 8px;

    border:
        2px solid
        rgba(255,255,255,.35);

    border-top-color:
        white;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   FOOTER
========================================================= */

footer {
    text-align: center;

    margin-top: 20px;

    color: #53667e;

    font-size: 11px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 520px
) {

    .auth-background {
        padding: 18px 12px;
        align-items: flex-start;
    }

    .auth-container {
        margin-top: 10px;
    }

    .auth-card {
        padding: 20px;
        border-radius: 17px;
    }

    .panel-heading h1 {
        font-size: 23px;
    }

    .otp-inputs {
        gap: 5px;
    }

    .otp-inputs input {
        height: 48px;
        font-size: 18px;
    }

}