/* ===========================================================
   Alamin Education Enterprise
   Login Page
   Version : 6.1 Enterprise
   Section : Part-1
   =========================================================== */

/* ===========================================================
   RESET
=========================================================== */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
}

body{
    min-height:100vh;
    overflow-x:hidden;

    font-family:
        "Inter",
        "Segoe UI",
        sans-serif;

    color:#ffffff;

    background:
        url("../../images/backgrounds/login-bg.jpg")
        center center /
        cover
        no-repeat
        fixed;
}

/* ===========================================================
   BACKGROUND
=========================================================== */

body::before{

    content:"";

    position:fixed;

    inset:0;

    background:
        linear-gradient(
            135deg,
            rgba(15,23,42,.55),
            rgba(37,99,235,.22),
            rgba(2,6,23,.35)
        );

    backdrop-filter:blur(3px);

    -webkit-backdrop-filter:blur(3px);

    z-index:-2;

}

/* ===========================================================
   WRAPPER
=========================================================== */

.login-wrapper{

    width:100%;

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:32px;

}

.login-container{

    width:100%;

    max-width:460px;

}

/* ===========================================================
   GLASS CARD
=========================================================== */

.login-card{

    position:relative;

    width:100%;

    padding:28px;

    overflow:hidden;

    border-radius:26px;

    background:rgba(255,255,255,.18);

    border:1px solid rgba(255,255,255,.28);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    box-shadow:0 20px 50px rgba(0,0,0,.25);

}
.login-card::before{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

        linear-gradient(

            135deg,

            rgba(255,255,255,.08),

            transparent 40%,

            rgba(255,255,255,.04)

        );

}

/* ===========================================================
   BRAND
=========================================================== */

.brand{

    text-align:center;

    margin-bottom:18px;

}

.brand-badge{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

.version-badge,

.network-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:95px;

    height:32px;

    padding:0 14px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;

}

.version-badge{

    background:#2563eb;

    color:#ffffff;

}

.network-badge{

    background:#16a34a;

    color:#ffffff;

}

.logo-box{

    width:120px;

    height:120px;

    margin:0 auto 20px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.18);

    backdrop-filter:blur(16px);

    animation:logoFloat 3s ease-in-out infinite;

}

.brand-logo{

    width:88px;

    height:88px;

    object-fit:contain;

}

.brand h1{

    margin-bottom:10px;

    font-size:30px;

    font-weight:700;

    color:#ffffff;

}

.brand h3{

    margin-bottom:12px;

    color:#93c5fd;

    font-size:20px;

    font-weight:600;

}

.brand p{

    color:rgba(255,255,255,.82);

    line-height:1.7;

    font-size:15px;

}

/* ===========================================================
   LOGIN HEADER
=========================================================== */

.login-header{

    margin-bottom:20px;

    text-align:center;

}

.login-badge{

    display:inline-block;

    margin-bottom:14px;

    padding:6px 16px;

    border-radius:30px;

    background:#2563eb;

    color:#ffffff;

    font-size:12px;

    font-weight:600;

}

.login-header h2{

    margin-bottom:12px;

    font-size:32px;

    font-weight:700;

    color:#ffffff;

}

.login-header p{

    color:rgba(255,255,255,.82);

    line-height:1.8;

}

/* ===========================================================
   FORM
=========================================================== */

.form-group{

    margin-bottom:16px;

}

.form-group label{

    display:block;

    margin-bottom:10px;

    color:#ffffff;

    font-size:15px;

    font-weight:600;

}

/* ===========================================================
   INPUT GROUP
=========================================================== */

.input-group{

    display:flex;

    align-items:center;

    height:58px;

    border-radius:16px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.22);

    background:rgba(255,255,255,.10);

    transition:.25s;

}

.input-group:focus-within{

    border-color:#60a5fa;

    background:rgba(255,255,255,.14);

    box-shadow:0 0 0 4px rgba(96,165,250,.16);

}

.input-icon{

    width:54px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:18px;

    color:#ffffff;

}

.input-group input{

    flex:1;

    height:100%;

    border:none;

    outline:none;

    background:transparent;

    color:#ffffff;

    font-size:15px;

    padding-right:14px;

}

.input-group input::placeholder{

    color:rgba(255,255,255,.65);

}

.toggle-password{

    width:54px;

    height:100%;

    border:none;

    background:transparent;

    color:#ffffff;

    cursor:pointer;

    transition:.25s;

}

.toggle-password:hover{

    background:rgba(255,255,255,.10);

}

/* ===========================================================
   VALIDATION
=========================================================== */

.input-group.error{

    border-color:#dc2626;

    box-shadow:0 0 0 4px rgba(220,38,38,.15);

}

.input-group.success{

    border-color:#16a34a;

    box-shadow:0 0 0 4px rgba(22,163,74,.15);

}

.field-error{

    display:block;

    min-height:18px;

    margin-top:8px;

    color:#fecaca;

    font-size:13px;

    font-weight:500;

}
/* ===========================================================
   Password Box
=========================================================== */

.password-box{

    position:relative;

}

.password-box input{

    padding-right:60px;

}

.toggle-password{

    position:absolute;

    top:50%;

    right:18px;

    transform:translateY(-50%);

    width:40px;

    height:40px;

    border:none;

    background:transparent;

    color:#ffffff;

    cursor:pointer;

    border-radius:50%;

    font-size:18px;

    transition:.30s;

}

.toggle-password:hover{

    background:rgba(255,255,255,.12);

}

/* ===========================================================
   Remember
=========================================================== */

.remember-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

    font-size:15px;

}

.remember-row label{

    display:flex;

    align-items:center;

    gap:10px;

    color:#ffffff;

    cursor:pointer;

}

.remember-row input{

    width:18px;

    height:18px;

    accent-color:#2563eb;

}

.remember-row a{

    color:#bfdbfe;

    text-decoration:none;

    transition:.30s;

}

.remember-row a:hover{

    color:#ffffff;

}

/* ===========================================================
   LOGIN BUTTON
=========================================================== */

.login-btn{

    width:100%;
    height:58px;

    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;

    border:none;
    border-radius:16px;

    cursor:pointer;

    font-size:17px;
    font-weight:700;

    color:#ffffff;

    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    box-shadow:
        0 15px 35px
        rgba(37,99,235,.35);

    transition:.30s;

}

.login-btn:hover{

    transform:translateY(-2px);

    box-shadow:
        0 20px 45px
        rgba(37,99,235,.45);

}

.login-btn:active{

    transform:scale(.98);

}

.login-btn:disabled{

    opacity:.65;
    cursor:not-allowed;

}

.btn-loader{

    display:inline-flex;
    align-items:center;
}

/* ===========================================================
   DIVIDER
=========================================================== */

.divider{

    display:flex;

    align-items:center;

    gap:15px;

    margin:18px 0;

}

.divider::before,
.divider::after{

    content:"";

    flex:1;

    height:1px;

    background:
        rgba(255,255,255,.18);

}

.divider span{

    color:rgba(255,255,255,.75);

    font-size:13px;

    letter-spacing:2px;

}

/* ===========================================================
   GOOGLE BUTTON
=========================================================== */

.google-btn{

    width:100%;

    height:56px;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    margin-bottom:16px;

    border-radius:16px;

    border:1px solid rgba(255,255,255,.20);

    background:rgba(255,255,255,.12);

    color:#ffffff;

    cursor:pointer;

    transition:.30s;

    backdrop-filter:blur(16px);

}

.google-btn:hover{

    background:rgba(255,255,255,.18);

    transform:translateY(-2px);

}

.google-icon{

    width:22px;
    height:22px;

}

/* ===========================================================
   PHONE BUTTON
=========================================================== */

.phone-btn{

    width:100%;

    height:56px;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    border:none;

    border-radius:16px;

    background:linear-gradient(
        135deg,
        #10b981,
        #059669
    );

    color:#ffffff;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.30s;

}

.phone-btn:hover{

    transform:translateY(-2px);

}

/* ===========================================================
   PHONE LOGIN
=========================================================== */

.phone-login{

    margin-top:22px;

    padding:20px;

    border-radius:18px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.16);

}

.otp-btn,
.verify-btn{

    width:100%;

    height:52px;

    margin-top:12px;

    border:none;

    border-radius:14px;

    color:#ffffff;

    font-weight:600;

    cursor:pointer;

    transition:.30s;

}

.otp-btn{

    background:linear-gradient(
        135deg,
        #0ea5e9,
        #0284c7
    );

}

.verify-btn{

    background:linear-gradient(
        135deg,
        #f59e0b,
        #d97706
    );

}

.otp-btn:hover,
.verify-btn:hover{

    transform:translateY(-2px);

}

#recaptcha-container{

    margin-top:16px;

}

/* ===========================================================
   REGISTER
=========================================================== */

.register-area{

    margin-top:20px;

    text-align:center;

}

.register-area p{

    margin-bottom:14px;

    color:rgba(255,255,255,.80);

}

.register-link{

    display:flex;

    justify-content:center;

    align-items:center;

    height:56px;

    border-radius:16px;

    text-decoration:none;

    font-weight:700;

    color:#ffffff;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.18);

    transition:.30s;

}

.register-link:hover{

    background:rgba(255,255,255,.18);

}

/* ===========================================================
   HELP SECTION
=========================================================== */

.help-section{

     margin-top:20px;

    padding-top:18px;

    border-top:1px solid rgba(255,255,255,.15);

}

.help-section h3{

    text-align:center;

    margin-bottom:18px;

}

.help-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:14px;

}

.help-grid a{

    display:flex;

    justify-content:center;

    align-items:center;

    min-height:54px;

    border-radius:14px;

    text-decoration:none;

    color:#ffffff;

    font-weight:600;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.16);

    transition:.30s;

}

.help-grid a:hover{

    background:rgba(37,99,235,.30);

}


/* ===========================================================
   Loading Overlay
=========================================================== */

.loading-overlay{

    position:fixed;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.65);

    backdrop-filter:blur(12px);

    z-index:9999;

}

.loader{

    width:70px;

    height:70px;

    border-radius:50%;

    border:6px solid rgba(255,255,255,.20);

    border-top:6px solid #ffffff;

    animation:spin 1s linear infinite;

}

.loading-overlay p{

    margin-top:20px;

    color:#ffffff;

    font-size:17px;

    font-weight:600;

}

/* ===========================================================
   LOADING
=========================================================== */

.loading-overlay{

    position:fixed;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    background:rgba(2,6,23,.78);

    backdrop-filter:blur(10px);

    z-index:9999;

}

.loader{

    width:64px;

    height:64px;

    border-radius:50%;

    border:5px solid rgba(255,255,255,.15);

    border-top-color:#ffffff;

    animation:spin .9s linear infinite;

}

.loading-overlay p{

    margin-top:18px;

    font-size:16px;

    font-weight:600;

}

/* ===========================================================
   ANIMATION
=========================================================== */

@keyframes spin{

    from{

        transform:rotate(0);

    }

    to{

        transform:rotate(360deg);

    }

}

@keyframes logoFloat{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-8px);

    }

    100%{

        transform:translateY(0);

    }

}

.login-card{

    animation:fadeUp .6s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(25px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ===========================================================
   ACCESSIBILITY
=========================================================== */

::selection{

    background:#2563eb;

    color:#ffffff;

}

button:focus-visible,
input:focus-visible,
a:focus-visible{

    outline:3px solid #60a5fa;

    outline-offset:3px;

}

[hidden]{

    display:none !important;

}

/* ===========================================================
   DESKTOP
=========================================================== */

@media (min-width:1400px){

    .login-container{

        max-width:500px;

    }

}

/* ===========================================================
   TABLET
=========================================================== */

@media (max-width:992px){

    .login-wrapper{

        padding:24px;

    }

    .login-card{

        padding:34px;

    }

}

/* ===========================================================
   MOBILE
=========================================================== */

@media (max-width:768px){

    .login-wrapper{

        padding:18px;

    }

    .login-card{

        padding:22px 16px;

        border-radius:22px;

    }

    .logo-box{

        width:100px;

        height:100px;

    }

    .brand-logo{

        width:72px;

        height:72px;

    }

    .brand h1{

        font-size:24px;

    }

    .brand h3{

        font-size:18px;

    }

    .login-header h2{

        font-size:26px;

    }

    .help-grid{

        grid-template-columns:1fr;

    }

}

/* ===========================================================
   SMALL MOBILE
=========================================================== */

@media (max-width:480px){

    .login-wrapper{

        padding:14px;

    }

    .login-card{

        padding:18px 14px;

    }

    .remember-row{

        flex-direction:column;

        align-items:flex-start;

        gap:12px;

    }

    .login-btn,
    .google-btn,
    .phone-btn,
    .otp-btn,
    .verify-btn,
    .register-link{

        height:54px;

    }

}

/* ===========================================================
   REDUCED MOTION
=========================================================== */

@media (prefers-reduced-motion:reduce){

    *{

        animation:none !important;

        transition:none !important;

        scroll-behavior:auto !important;

    }

}

/* ===========================================================
   DARK MODE
=========================================================== */

body.dark-mode{

    background:#020617;

}

body.dark-mode::before{

    background:

    linear-gradient(

        135deg,

        rgba(2,6,23,.92),

        rgba(15,23,42,.86),

        rgba(30,41,59,.84)

    );

}

body.dark-mode .login-card{

    background:rgba(15,23,42,.58);

}

/* ===========================================================
   PRINT
=========================================================== */

@media print{

    body{

        display:none;

    }

}