*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background:#f5f7fb;
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

.login-wrapper{
    width:100%;
    min-height:100vh;
    display:flex;
}

/* ===================================================
    LEFT SIDE
=================================================== */

.left-panel{
    width:42%;
    min-height:100vh;
    position:relative;
    padding:50px;
    overflow:hidden;

    background:
        linear-gradient(rgba(5,12,40,.90), rgba(5,12,40,.94)),
        url('https://images.unsplash.com/photo-1547347298-4074fc3086f0?q=80&w=1800&auto=format&fit=crop');

    background-size:cover;
    background-position:center;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#fff;
}

.left-panel::before{
    content:'';
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at top left,
        rgba(115,103,240,.22),
        transparent 35%),

        radial-gradient(circle at bottom right,
        rgba(67,97,238,.18),
        transparent 30%);
}

.left-content{
    position:relative;
    z-index:2;
}

/* LOGO */

.brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    margin-bottom:60px;
}

.logo{
    font-size:85px;
    font-weight:800;
    line-height:1;
    margin-bottom:8px;

    background:linear-gradient(135deg,#8b5cf6,#6366f1);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.brand h1{
    font-size:38px;
    letter-spacing:2px;
    font-weight:700;
}

.brand h1 span{
    color:#7c6cff;
}

.brand p{
    margin-top:15px;
    letter-spacing:4px;
    font-size:12px;
    color:rgba(255,255,255,.65);
    position:relative;
    padding-top:20px;
}

.brand p::before{
    content:'';
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:60px;
    height:2px;
    background:linear-gradient(90deg, #7c6cff, #8b5cf6);
}

/* WELCOME */

.welcome-box{
    max-width:450px;
    text-align:center;
    margin-bottom:60px;
}

.welcome-icon{
    width:85px;
    height:85px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.04);

    margin:0 auto 26px;
}

.welcome-icon i{
    font-size:38px;
    color:#7c6cff;
}

.welcome-box h2{
    font-size:48px;
    line-height:1.1;
    margin-bottom:16px;
    font-weight:700;
}

.welcome-box p{
    color:rgba(255,255,255,.70);
    line-height:1.7;
    font-size:16px;
}

/* SECURITY CARD */

.security-card{
    position:relative;
    z-index:2;

    display:flex;
    gap:16px;
    align-items:center;
    max-width:420px;
    margin:0 auto;

    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

    padding:22px;
    border-radius:18px;
}

.security-icon{
    width:55px;
    height:55px;
    min-width:55px;
    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(124,108,255,.12);
}

.security-icon i{
    font-size:26px;
    color:#8b5cf6;
}

.security-text h4{
    font-size:17px;
    margin-bottom:8px;
    font-weight:600;
}

.security-text p{
    color:rgba(255,255,255,.65);
    line-height:1.6;
    font-size:14px;
}

/* ===================================================
    RIGHT PANEL
=================================================== */

.right-panel{
    width:58%;
    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:50px;
    position:relative;

    background:#f7f9fc;
}

.right-panel::before{
    content:'';
    position:absolute;
    right:60px;
    top:25px;
    width:140px;
    height:140px;
    background-image:radial-gradient(#d6d9e5 1.2px, transparent 1.2px);
    background-size:16px 16px;
    opacity:.6;
}

.login-card{
    width:100%;
    max-width:700px;

    background:#fff;
    border-radius:24px;

    padding:48px 60px;

    box-shadow:
        0 15px 50px rgba(15,23,42,.06);

    border:1px solid #eef1f7;

    position:relative;
    z-index:2;
}

/* FORM HEADER */

.form-header{
    text-align:center;
    margin-bottom:38px;
}

.form-icon{
    width:75px;
    height:75px;
    border-radius:50%;

    margin:auto;
    margin-bottom:20px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:linear-gradient(135deg,#ede9fe,#f3e8ff);
}

.form-icon i{
    font-size:34px;
    color:#6d4aff;
}

.form-header h2{
    font-size:42px;
    color:#1e293b;
    margin-bottom:10px;
    font-weight:700;
    letter-spacing:-0.5px;
}

.form-header p{
    color:#64748b;
    font-size:15.5px;
}

/* FORM */

.form-group{
    margin-bottom:24px;
}

.form-group label{
    display:block;
    margin-bottom:10px;
    color:#334155;
    font-size:14px;
    font-weight:600;
}

.input-box{
    position:relative;
}

.input-box i{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
    font-size:20px;
}

.input-box input{
    width:100%;
    height:56px;

    border:1.5px solid #dbe2ea;
    border-radius:12px;

    background:#fff;

    padding:0 50px;

    font-size:15px;
    color:#1e293b;

    transition:.25s;
}

.input-box input:focus{
    outline:none;
    border-color:#7c6cff;

    box-shadow:
        0 0 0 3px rgba(124,108,255,.08);
}

.input-box input::placeholder{
    color:#94a3b8;
}

.input-box input.is-invalid{
    border-color:#ef4444;
}

.input-box input.is-invalid:focus{
    box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

.password-toggle{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);

    background:none;
    border:none;
    cursor:pointer;
    padding:4px;
}

.password-toggle i{
    position:relative;
    left:0;
    top:0;
    transform:none;
    font-size:22px;
    color:#94a3b8;
}

.password-toggle:hover i{
    color:#6d4aff;
}

.error-message{
    color:#ef4444;
    font-size:13px;
    margin-top:7px;
    display:block;
}

/* OPTIONS */

.form-options{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:26px;
}

.remember{
    display:flex;
    align-items:center;
    gap:8px;
}

.remember input{
    width:17px;
    height:17px;
    accent-color:#6d4aff;
    cursor:pointer;
}

.remember label{
    font-size:14px;
    color:#475569;
    cursor:pointer;
}

.forgot-password{
    color:#6d4aff;
    font-weight:600;
    font-size:14px;
}

.forgot-password:hover{
    text-decoration:underline;
}

/* BUTTON */

.btn-login{
    width:100%;
    height:56px;

    border:none;
    border-radius:12px;

    background:linear-gradient(135deg,#6d4aff,#5b21b6);
    color:#fff;

    font-size:16px;
    font-weight:600;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    cursor:pointer;
    transition:.3s;
}

.btn-login:hover{
    transform:translateY(-2px);

    box-shadow:
        0 15px 30px rgba(109,74,255,.28);
}

.btn-login i{
    font-size:20px;
}

/* DIVIDER */

.divider{
    display:flex;
    align-items:center;
    gap:14px;

    margin:30px 0;
    color:#94a3b8;
    font-size:13px;
}

.divider::before,
.divider::after{
    content:'';
    flex:1;
    height:1px;
    background:#e2e8f0;
}

/* SSO BUTTON */

.btn-sso{
    width:100%;
    height:54px;

    border-radius:12px;
    border:1.5px solid #d8dff0;

    background:#fff;
    color:#6d4aff;

    font-size:15px;
    font-weight:600;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    cursor:pointer;
    transition:.25s;
}

.btn-sso:hover{
    border-color:#6d4aff;
    background:#faf8ff;
}

.btn-sso i{
    font-size:20px;
}

/* FOOTER */

.bottom-text{
    text-align:center;
    margin-top:30px;
    color:#64748b;
    font-size:14px;
}

.bottom-text a{
    color:#6d4aff;
    font-weight:600;
}

.bottom-text a:hover{
    text-decoration:underline;
}

.copyright{
    margin-top:26px;
    text-align:center;
    color:#94a3b8;
    font-size:13px;
}

/* ===================================================
    RESPONSIVE
=================================================== */

@media(max-width:1200px){

    .left-panel{
        width:44%;
    }

    .right-panel{
        width:56%;
    }

    .form-header h2{
        font-size:38px;
    }

    .welcome-box h2{
        font-size:42px;
    }

    .logo{
        font-size:75px;
    }
}

@media(max-width:992px){

    .login-wrapper{
        flex-direction:column;
    }

    .left-panel,
    .right-panel{
        width:100%;
    }

    .left-panel{
        min-height:500px;
    }

    .welcome-box{
        margin:50px 0;
    }
}

@media(max-width:768px){

    .left-panel{
        padding:35px 25px;
    }

    .right-panel{
        padding:30px 20px;
    }

    .login-card{
        padding:32px 28px;
    }

    .brand h1{
        font-size:32px;
    }

    .logo{
        font-size:68px;
    }

    .welcome-box h2{
        font-size:36px;
    }

    .form-header h2{
        font-size:32px;
    }

    .input-box input{
        height:54px;
        padding:0 48px;
    }

    .btn-login{
        height:54px;
    }
}

@media(max-width:480px){

    .form-options{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .welcome-box h2{
        font-size:30px;
    }

    .form-header h2{
        font-size:28px;
    }

    .login-card{
        border-radius:18px;
    }
}


/* ===================================================
    RESPONSIVE
=================================================== */

@media(max-width:1200px){

    .left-panel{
        width:45%;
    }

    .right-panel{
        width:55%;
    }

    .form-header h2{
        font-size:40px;
    }

    .welcome-box h2{
        font-size:44px;
    }
}

@media(max-width:992px){

    .login-wrapper{
        flex-direction:column;
    }

    .left-panel,
    .right-panel{
        width:100%;
    }

    .left-panel{
        min-height:550px;
    }

    .welcome-box{
        margin:60px 0;
    }
}

@media(max-width:768px){

    .left-panel{
        padding:40px 30px;
    }

    .right-panel{
        padding:30px 20px;
    }

    .login-card{
        padding:35px 25px;
    }

    .brand h1{
        font-size:34px;
    }

    .logo{
        font-size:72px;
    }

    .welcome-box h2{
        font-size:38px;
    }

    .form-header h2{
        font-size:34px;
    }
}

@media(max-width:480px){

    .form-options{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .welcome-box h2{
        font-size:32px;
    }

    .form-header h2{
        font-size:28px;
    }

    .login-card{
        border-radius:20px;
    }
}
