/* ========================================
   RESET
======================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

/* ========================================
   LIGHT MODE
======================================== */

:root{

    --primary:#0ea5e9;
    --secondary:#2563eb;

    --bg:#f8fafc;

    --card:
    rgba(255,255,255,.90);

    --text:#0f172a;

    --text-light:#64748b;

    --border:
    rgba(15,23,42,.08);

    --shadow:
    0 20px 50px rgba(0,0,0,.08);

    --gradient:
    linear-gradient(
        135deg,
        #0ea5e9,
        #2563eb
    );
}

/* ========================================
   DARK MODE
======================================== */

body.dark-mode{

    --bg:#020617;

    --card:
    rgba(15,23,42,.88);

    --text:#ffffff;

    --text-light:#94a3b8;

    --border:
    rgba(255,255,255,.08);

    --shadow:
    0 25px 60px rgba(0,0,0,.30);
}

/* ========================================
   BODY
======================================== */

body{

    min-height:100vh;

    background:var(--bg);

    color:var(--text);

    overflow-x:hidden;

    position:relative;

    transition:.4s ease;
}

/* ========================================
   GLOBAL
======================================== */

a{
    text-decoration:none;
}

img{
    display:block;
    max-width:100%;
}

button,
input{
    font-family:inherit;
}

/* ========================================
   BACKGROUND BLOBS
======================================== */

.blob{

    position:fixed;

    border-radius:50%;

    filter:blur(120px);

    opacity:.18;

    z-index:-2;
}

.blob1{

    width:500px;
    height:500px;

    background:#0ea5e9;

    top:-200px;
    left:-150px;
}

.blob2{

    width:450px;
    height:450px;

    background:#2563eb;

    right:-150px;
    bottom:-150px;
}

.blob3{

    width:300px;
    height:300px;

    background:#38bdf8;

    left:40%;
    top:40%;
}

/* ========================================
   GRID BG
======================================== */

.grid-bg{

    position:fixed;

    inset:0;

    z-index:-3;

    opacity:.04;

    background-image:

    linear-gradient(
        rgba(100,116,139,.15) 1px,
        transparent 1px
    ),

    linear-gradient(
        90deg,
        rgba(100,116,139,.15) 1px,
        transparent 1px
    );

    background-size:
    40px 40px;
}

body.dark-mode .grid-bg{

    background-image:

    linear-gradient(
        rgba(255,255,255,.10) 1px,
        transparent 1px
    ),

    linear-gradient(
        90deg,
        rgba(255,255,255,.10) 1px,
        transparent 1px
    );
}

/* ========================================
   THEME BUTTON
======================================== */

.theme-toggle{

    position:fixed;

    right:25px;
    bottom:25px;

    width:55px;
    height:55px;

    border:none;

    border-radius:50%;

    background:var(--gradient);

    color:#fff;

    cursor:pointer;

    font-size:20px;

    z-index:999;

    box-shadow:var(--shadow);

    transition:.3s;
}

.theme-toggle:hover{

    transform:
    translateY(-5px);
}

/* ========================================
   PAGE ANIMATION
======================================== */

.login-wrapper{

    opacity:0;

    transform:
    translateY(30px);

    transition:.8s ease;
}

body.loaded .login-wrapper{

    opacity:1;

    transform:
    translateY(0);
}

/* ========================================
   WRAPPER
======================================== */

.login-wrapper{

    width:100%;

    min-height:100vh;

    display:grid;

    grid-template-columns:
    1.1fr .9fr;

    align-items:center;

    gap:70px;

    padding:40px 8%;
}

/* ========================================
   LEFT SIDE
======================================== */

.login-left{

    position:relative;

    transform:
    translateY(-30px);
}

/* ========================================
   SYSTEM BADGE
======================================== */

.system-badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:12px 20px;

    border-radius:999px;

    background:
    rgba(14,165,233,.10);

    border:
    1px solid rgba(14,165,233,.20);

    color:var(--primary);

    font-size:.9rem;

    font-weight:600;

    margin-top:60px;

    margin-bottom:25px;
}

/* ========================================
   CONTENT
======================================== */

.login-content h1{

    font-size:4rem;

    font-weight:800;

    line-height:1.1;

    color:var(--text);

    margin-bottom:20px;
}

.login-content h1 span{

    background:var(--gradient);

    background-clip:text;

    -webkit-background-clip:text;

    color:transparent;

    -webkit-text-fill-color:transparent;
}

.login-content p{

    max-width:620px;

    color:var(--text-light);

    line-height:1.9;

    font-size:1rem;

    margin-bottom:35px;
}
/* ========================================
   PREVIEW CARD
======================================== */

.preview-card{

    width:100%;

    max-width:600px;

    background:var(--card);

    backdrop-filter:blur(20px);

    border:1px solid var(--border);

    border-radius:30px;

    overflow:hidden;

    box-shadow:var(--shadow);

    animation:
    floatingCard 5s ease-in-out infinite;
}

/* ========================================
   PREVIEW TOP
======================================== */

.preview-top{

    display:flex;

    gap:8px;

    padding:18px 20px;

    border-bottom:
    1px solid var(--border);
}

.preview-top span{

    width:12px;
    height:12px;

    border-radius:50%;
}

.preview-top span:nth-child(1){

    background:#ef4444;
}

.preview-top span:nth-child(2){

    background:#f59e0b;
}

.preview-top span:nth-child(3){

    background:#22c55e;
}

/* ========================================
   PREVIEW BODY
======================================== */

.preview-body{

    padding:40px;
}

.preview-body img{

    width:100%;

    max-width:340px;

    margin:auto;

    object-fit:contain;

    filter:
    drop-shadow(
        0 20px 40px rgba(14,165,233,.25)
    );
}

/* ========================================
   FLOATING ANIMATION
======================================== */

@keyframes floatingCard{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-12px);
    }

    100%{
        transform:translateY(0);
    }
}

/* ========================================
   FLOATING POSITION
======================================== */

.info-1{

    top:220px;

    right:10px;
}

.info-2{

    bottom:250px;

    left:10px;
}

/* ========================================
   RESPONSIVE TABLET
======================================== */

@media(max-width:1100px){

    .login-wrapper{

        grid-template-columns:1fr;

        gap:50px;

        padding:40px 30px;
    }

    .login-left{

        text-align:center;

        transform:none;
    }

    .preview-card{

        margin:auto;
    }

    .floating-info{

        display:none;
    }
}

/* ========================================
   RESPONSIVE MOBILE
======================================== */

@media(max-width:768px){

    .login-wrapper{

        padding:25px 18px;
    }

    .login-content h1{

        font-size:2.8rem;
    }

    .login-content p{

        font-size:.95rem;
    }

    .preview-body{

        padding:25px;
    }

    .preview-body img{

        max-width:220px;
    }
}
/* ========================================
   RIGHT SIDE
======================================== */

.login-right{

    display:flex;

    justify-content:center;

    align-items:center;
}

/* ========================================
   LOGIN CARD
======================================== */

.login-card{

    width:100%;

    max-width:500px;

    background:var(--card);

    backdrop-filter:blur(20px);

    border:1px solid var(--border);

    border-radius:32px;

    padding:40px;

    box-shadow:var(--shadow);

    transition:.3s;
}

/* ========================================
   CARD HEADER
======================================== */

.card-header{

    text-align:center;

    margin-bottom:30px;
}

.login-icon{

    width:85px;
    height:85px;

    margin:auto;
    margin-bottom:20px;

    border-radius:24px;

    background:var(--gradient);

    display:flex;

    align-items:center;

    justify-content:center;

    color:#ffffff;

    font-size:32px;

    box-shadow:
    0 15px 30px rgba(14,165,233,.25);
}

.card-header h2{

    font-size:2rem;

    color:var(--text);

    margin-bottom:10px;
}

.card-header p{

    color:var(--text-light);

    line-height:1.8;
}

/* ========================================
   FLASH MESSAGE
======================================== */

.flash-container{

    margin-bottom:20px;
}

.flash{

    padding:14px 18px;

    border-radius:14px;

    margin-bottom:10px;

    font-size:.9rem;

    font-weight:500;
}

.flash.success{

    background:
    rgba(34,197,94,.12);

    color:#22c55e;

    border:
    1px solid rgba(34,197,94,.25);
}

.flash.error{

    background:
    rgba(239,68,68,.12);

    color:#ef4444;

    border:
    1px solid rgba(239,68,68,.25);
}

.flash.warning{

    background:
    rgba(245,158,11,.12);

    color:#f59e0b;

    border:
    1px solid rgba(245,158,11,.25);
}

/* ========================================
   FORM
======================================== */

.login-form{

    display:flex;

    flex-direction:column;

    gap:18px;
}

/* ========================================
   FORM GROUP
======================================== */

.form-group{

    display:flex;

    flex-direction:column;

    gap:8px;
}

.form-group label{

    font-size:.95rem;

    font-weight:600;

    color:var(--text);
}

/* ========================================
   INPUT BOX
======================================== */

.input-box{

    position:relative;

    display:flex;

    align-items:center;

    height:58px;

    border:1px solid var(--border);

    border-radius:16px;

    background:var(--bg);

    transition:.3s;
}

.input-box.active,
.input-box:focus-within{

    border-color:var(--primary);

    box-shadow:
    0 0 0 4px rgba(14,165,233,.10);
}

.input-box i{

    width:55px;

    text-align:center;

    color:var(--text-light);

    font-size:1rem;
}

.input-box input{

    flex:1;

    border:none;

    outline:none;

    background:transparent;

    color:var(--text);

    font-size:.95rem;

    padding-right:15px;
}

.input-box input::placeholder{

    color:var(--text-light);
}
/* ========================================
   BUTTON
======================================== */

.login-btn{

    height:58px;

    border:none;

    border-radius:16px;

    background:var(--gradient);

    color:#ffffff;

    font-size:1rem;

    font-weight:600;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    transition:.3s;

    margin-top:5px;
}

.login-btn:hover{

    transform:
    translateY(-3px);

    box-shadow:
    0 15px 30px rgba(14,165,233,.25);
}

.login-btn:active{

    transform:
    scale(.98);
}

/* ========================================
   DIVIDER
======================================== */

.divider{

    position:relative;

    margin:28px 0;

    text-align:center;
}

.divider::before{

    content:"";

    position:absolute;

    top:50%;
    left:0;

    width:100%;
    height:1px;

    background:var(--border);
}

.divider span{

    position:relative;

    background:var(--card);

    padding:0 15px;

    color:var(--text-light);

    font-size:.85rem;

    z-index:2;
}

/* ========================================
   MINI FEATURES
======================================== */

.mini-features{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:12px;

    margin-bottom:25px;
}

.mini-feature{

    padding:15px 10px;

    border-radius:16px;

    background:
    rgba(14,165,233,.06);

    border:
    1px solid rgba(14,165,233,.12);

    text-align:center;

    transition:.3s;
}

.mini-feature:hover{

    transform:
    translateY(-4px);

    background:
    rgba(14,165,233,.10);
}

.mini-feature i{

    display:block;

    margin-bottom:8px;

    color:var(--primary);

    font-size:1.2rem;
}

.mini-feature span{

    color:var(--text);

    font-size:.85rem;

    font-weight:600;
}

/* ========================================
   FOOTER LINK
======================================== */

.register-text{

    text-align:center;

    color:var(--text-light);

    line-height:1.8;
}

.register-text a{

    color:var(--primary);

    font-weight:700;

    transition:.3s;
}

.register-text a:hover{

    opacity:.8;
}

/* ========================================
   DARK MODE IMPROVEMENT
======================================== */

body.dark-mode .input-box{

    background:
    rgba(15,23,42,.60);
}

body.dark-mode .mini-feature{

    background:
    rgba(255,255,255,.03);

    border:
    1px solid rgba(255,255,255,.05);
}

body.dark-mode .divider span{

    background:
    rgba(15,23,42,.95);
}

/* ========================================
   MOBILE
======================================== */

@media(max-width:768px){

    .login-card{

        padding:28px 20px;

        border-radius:24px;
    }

    .card-header h2{

        font-size:1.7rem;
    }

    .login-icon{

        width:70px;
        height:70px;

        font-size:26px;
    }

    .mini-features{

        grid-template-columns:1fr;
    }

    .login-btn{

        width:100%;
    }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media(max-width:480px){

    .login-card{

        padding:22px 16px;
    }

    .card-header h2{

        font-size:1.5rem;
    }

    .input-box{

        height:54px;
    }

    .login-btn{

        height:54px;
    }
}

/* ========================================
   CUSTOM SCROLLBAR
======================================== */

::-webkit-scrollbar{

    width:10px;
}

::-webkit-scrollbar-track{

    background:var(--bg);
}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{

    background:#0284c7;
}
/* Hilangkan background putih autofill Chrome */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{

    -webkit-box-shadow:
    0 0 0 1000px var(--bg) inset !important;

    -webkit-text-fill-color:
    var(--text) !important;

    transition:
    background-color 9999s ease-in-out 0s;

    caret-color:
    var(--text);
}