/* ==========================================================
   Alamin Online Academy
   Phone Login
   Glassmorphism Authentication UI
========================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
}

body {
    min-height: 100vh;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #07111f 0%,
            #0f2745 45%,
            #172554 100%
        );
    overflow-x: hidden;
}

/* ==========================================================
   Background
========================================================== */

.auth-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.auth-background::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(37, 99, 235, 0.35),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(14, 165, 233, 0.25),
            transparent 32%
        );

    filter: blur(20px);
}

.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
}

.orb-one {
    width: 260px;
    height: 260px;
    background: #2563eb;
    top: -80px;
    left: -70px;
}

.orb-two {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    right: -100px;
    top: 20%;
}

.orb-three {
    width: 250px;
    height: 250px;
    background: #4f46e5;
    bottom: -100px;
    left: 30%;
}

/* ==========================================================
   Page
========================================================== */

.auth-page {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        30px
        16px;
}

/* ==========================================================
   Card
========================================================== */

.phone-login-card {

    width: min(
        100%,
        480px
    );

    padding:
        28px
        28px
        24px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.20
        );

    border-radius: 28px;

    background:
        rgba(
            15,
            23,
            42,
            0.48
        );

    backdrop-filter:
        blur(24px);

    -webkit-backdrop-filter:
        blur(24px);

    box-shadow:
        0 30px 80px
        rgba(
            0,
            0,
            0,
            0.35
        );

}

/* ==========================================================
   Header
========================================================== */

.auth-header {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom:
        24px;

}

.brand-badge,
.online-status {

    display: inline-flex;

    align-items:
        center;

    gap: 7px;

    padding:
        7px 12px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 700;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

}

.online-status {
    color: #d1fae5;
}

.brand-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #60a5fa;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 10px
        rgba(
            34,
            197,
            94,
            0.8
        );
}

/* ==========================================================
   Brand
========================================================== */

.brand-section {
    text-align: center;
}

.brand-logo {

    width: 82px;
    height: 82px;

    margin:
        0 auto 14px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            255,
            255,
            255,
            0.90
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.65
        );

    box-shadow:
        0 12px 30px
        rgba(
            0,
            0,
            0,
            0.25
        );

    overflow: hidden;
}

.brand-logo img {

    width: 100%;
    height: 100%;

    object-fit: contain;

}

.brand-section h1 {

    margin: 0;

    font-size:
        clamp(
            22px,
            5vw,
            28px
        );

    font-weight: 800;

}

.welcome-text {

    margin:
        7px 0 18px;

    color:
        rgba(
            255,
            255,
            255,
            0.75
        );

    font-size: 14px;

}

/* ==========================================================
   Badge
========================================================== */

.page-badge {

    width: fit-content;

    margin:
        0 auto 18px;

    padding:
        8px 14px;

    display: flex;

    align-items: center;

    gap: 8px;

    border-radius: 999px;

    background:
        rgba(
            37,
            99,
            235,
            0.28
        );

    border:
        1px solid
        rgba(
            96,
            165,
            250,
            0.35
        );

    color: #dbeafe;

    font-size: 12px;

    font-weight: 700;

}

/* ==========================================================
   Title
========================================================== */

.title-section {
    text-align: center;

    margin-bottom:
        24px;
}

.title-section h2 {

    margin:
        0 0 7px;

    font-size:
        25px;

}

.title-section p {

    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.62
        );

    line-height: 1.6;

    font-size: 13px;

}

/* ==========================================================
   Message
========================================================== */

.auth-message {

    padding:
        12px 14px;

    margin-bottom:
        18px;

    border-radius:
        12px;

    font-size:
        13px;

    line-height:
        1.5;

}

.auth-message.success {

    background:
        rgba(
            34,
            197,
            94,
            0.14
        );

    border:
        1px solid
        rgba(
            34,
            197,
            94,
            0.30
        );

    color:
        #bbf7d0;

}

.auth-message.error {

    background:
        rgba(
            239,
            68,
            68,
            0.14
        );

    border:
        1px solid
        rgba(
            239,
            68,
            68,
            0.30
        );

    color:
        #fecaca;

}

.auth-message.info {

    background:
        rgba(
            59,
            130,
            246,
            0.14
        );

    border:
        1px solid
        rgba(
            59,
            130,
            246,
            0.30
        );

    color:
        #bfdbfe;

}

/* ==========================================================
   Form
========================================================== */

.form-group {
    margin-bottom:
        18px;
}

.form-group label {

    display: block;

    margin-bottom:
        8px;

    color:
        rgba(
            255,
            255,
            255,
            0.86
        );

    font-size:
        13px;

    font-weight:
        700;

}

.input-wrapper {

    position: relative;

    display: flex;

    align-items: center;

}

.input-icon {

    position: absolute;

    left: 15px;

    font-size:
        17px;

    opacity:
        0.85;

    pointer-events:
        none;

}

.input-wrapper input {

    width: 100%;

    height: 54px;

    padding:
        0 15px 0 46px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );

    border-radius:
        15px;

    outline: none;

    color:
        #ffffff;

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );

    font-size:
        14px;

    transition:
        0.2s ease;

}

.input-wrapper input::placeholder {

    color:
        rgba(
            255,
            255,
            255,
            0.38
        );

}

.input-wrapper input:focus {

    border-color:
        rgba(
            96,
            165,
            250,
            0.75
        );

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    box-shadow:
        0 0 0 4px
        rgba(
            59,
            130,
            246,
            0.10
        );

}

.field-error {

    display: block;

    min-height:
        17px;

    margin-top:
        6px;

    color:
        #fca5a5;

    font-size:
        11px;

}

.input-help {

    margin:
        0;

    color:
        rgba(
            255,
            255,
            255,
            0.42
        );

    font-size:
        11px;

}

/* ==========================================================
   OTP
========================================================== */

.otp-section {

    margin-top:
        22px;

    padding:
        18px;

    border-radius:
        18px;

    background:
        rgba(
            255,
            255,
            255,
            0.055
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

}

.otp-header {

    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap: 12px;

    margin-bottom:
        18px;

}

.otp-header h3 {

    margin:
        0 0 5px;

    font-size:
        16px;

}

.otp-header p {

    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.52
        );

    font-size:
        11px;

    line-height:
        1.5;

}

.otp-icon {

    width: 42px;
    height: 42px;

    flex:
        0 0 42px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        13px;

    background:
        rgba(
            37,
            99,
            235,
            0.18
        );

}

/* ==========================================================
   Buttons
========================================================== */

.primary-button,
.secondary-button {

    width: 100%;

    min-height:
        52px;

    border: none;

    border-radius:
        15px;

    font-size:
        14px;

    font-weight:
        800;

    cursor: pointer;

    transition:
        0.2s ease;

}

.primary-button {

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    box-shadow:
        0 12px 25px
        rgba(
            37,
            99,
            235,
            0.25
        );

}

.primary-button:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 15px 30px
        rgba(
            37,
            99,
            235,
            0.35
        );

}

.primary-button:disabled {

    opacity:
        0.60;

    cursor:
        not-allowed;

    transform:
        none;

}

.secondary-button {

    margin-top:
        10px;

    color:
        #dbeafe;

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

}

.secondary-button:hover {

    background:
        rgba(
            255,
            255,
            255,
            0.11
        );

}

.button-loading {

    opacity:
        0.85;

}

/* ==========================================================
   reCAPTCHA
========================================================== */

.recaptcha-container {

    min-height:
        1px;

    overflow:
        hidden;

}

/* ==========================================================
   Divider
========================================================== */

.divider {

    display: flex;

    align-items:
        center;

    gap: 12px;

    margin:
        24px 0;

    color:
        rgba(
            255,
            255,
            255,
            0.38
        );

    font-size:
        11px;

}

.divider::before,
.divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

}

/* ==========================================================
   Alternative Login
========================================================== */

.alternative-login {

    width: 100%;

    min-height:
        50px;

    margin-bottom:
        10px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    gap: 10px;

    border-radius:
        14px;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

    background:
        rgba(
            255,
            255,
            255,
            0.055
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

    text-decoration:
        none;

    font-size:
        13px;

    font-weight:
        700;

    transition:
        0.2s ease;

}

.alternative-login:hover {

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

}

.google-login span:first-child {

    width: 23px;
    height: 23px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #ffffff;

    color:
        #4285f4;

    font-weight:
        900;

}

/* ==========================================================
   Register
========================================================== */

.register-link {

    margin:
        20px 0 18px;

    text-align:
        center;

    color:
        rgba(
            255,
            255,
            255,
            0.50
        );

    font-size:
        12px;

}

.register-link a {

    color:
        #93c5fd;

    text-decoration:
        none;

    font-weight:
        800;

}

.register-link a:hover {

    text-decoration:
        underline;

}

/* ==========================================================
   Footer
========================================================== */

.auth-footer {

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    gap: 8px;

    color:
        rgba(
            255,
            255,
            255,
            0.30
        );

    font-size:
        10px;

}

.auth-footer a {

    color:
        rgba(
            255,
            255,
            255,
            0.42
        );

    text-decoration:
        none;

}

.auth-footer a:hover {

    color:
        #93c5fd;

}

/* ==========================================================
   Mobile
========================================================== */

@media (
    max-width: 520px
) {

    .auth-page {

        padding:
            16px;

        align-items:
            flex-start;

    }

    .phone-login-card {

        margin-top:
            10px;

        padding:
            22px 18px 20px;

        border-radius:
            23px;

    }

    .auth-header {

        margin-bottom:
            18px;

    }

    .brand-logo {

        width: 70px;
        height: 70px;

    }

    .title-section h2 {

        font-size:
            22px;

    }

}

/* ==========================================================
   Reduced Motion
========================================================== */

@media (
    prefers-reduced-motion: reduce
) {

    * {

        scroll-behavior:
            auto !important;

        transition:
            none !important;

        animation:
            none !important;

    }

}