@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --secondary:#1e293b;
    --white:#ffffff;
    --gray:#94a3b8;
    --text:#334155;
    --danger:#dc2626;
    --danger-bg:#fee2e2;
}

/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{

    background-image:
        linear-gradient(
            rgba(15,32,67,0.88),
            rgba(15,32,67,0.88)
        ),
        url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;

    display:flex;
    justify-content:center;
    align-items:center;

    min-height:100vh;

    padding:20px;
}

/* =========================
   LOGIN BOX
========================= */
.login-wrapper{

    width:100%;
    max-width:470px;

    background:rgba(255,255,255,0.96);

    backdrop-filter:blur(12px);

    border-radius:24px;

    padding:45px 35px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.20);

    animation:fadeIn 0.5s ease;
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================
   HEADER
========================= */
.login-header{
    text-align:center;
    margin-bottom:35px;
}

.login-header .icon{

    width:95px;
    height:95px;

    margin:0 auto 20px;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    box-shadow:
        0 10px 25px rgba(37,99,235,0.25);
}

.login-header .icon i{
    color:white;
    font-size:44px;
}

.login-header h1{
    color:var(--secondary);
    font-size:30px;
    font-weight:700;
    margin-bottom:10px;
}

.login-header p{
    color:#64748b;
    font-size:15px;
    line-height:1.6;
}

/* =========================
   ERROR
========================= */
.error-msg{

    background:var(--danger-bg);

    color:var(--danger);

    padding:14px 16px;

    border-radius:12px;

    border-left:5px solid var(--danger);

    margin-bottom:22px;

    display:flex;
    align-items:center;
    gap:10px;

    font-size:13px;
}

/* =========================
   INPUT
========================= */
.input-group{
    position:relative;
    margin-bottom:22px;
}

.input-group i{

    position:absolute;

    left:18px;
    top:50%;

    transform:translateY(-50%);

    color:var(--gray);
    font-size:17px;
}

.input{

    width:100%;

    padding:16px 18px 16px 50px;

    border:1.8px solid #dbe4ee;

    border-radius:15px;

    background:#f8fafc;

    font-size:15px;

    color:var(--text);

    transition:0.3s;
}

.input:focus{

    outline:none;

    border-color:var(--primary);

    background:white;

    box-shadow:
        0 0 0 4px rgba(37,99,235,0.12);
}

.input::placeholder{
    color:#94a3b8;
}

/* =========================
   BUTTON LOGIN
========================= */
.btn-submit{

    width:100%;

    border:none;

    border-radius:15px;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    color:white;

    font-size:16px;
    font-weight:600;

    padding:16px;

    cursor:pointer;

    margin-top:8px;
    margin-bottom:18px;

    transition:0.3s;

    box-shadow:
        0 8px 18px rgba(37,99,235,0.28);
}

.btn-submit:hover{

    transform:translateY(-2px);

    box-shadow:
        0 12px 24px rgba(37,99,235,0.35);
}

/* =========================
   BUTTON KEMBALI
========================= */
.btn-kembali{

    width:100%;

    display:block;

    text-align:center;

    padding:15px;

    background:#f1f5f9;

    border:1.5px solid #dbe4ee;

    border-radius:15px;

    color:#475569;

    text-decoration:none;

    font-size:15px;
    font-weight:600;

    transition:0.3s;
}

.btn-kembali:hover{

    background:#e2e8f0;

    color:#1e293b;

    transform:translateY(-2px);
}

/* =========================
   FOOTER
========================= */
.footer-text{

    margin-top:30px;

    text-align:center;

    color:#94a3b8;

    font-size:13px;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:500px){

    .login-wrapper{
        padding:35px 25px;
    }

    .login-header h1{
        font-size:24px;
    }

    .input{
        font-size:14px;
    }
}