/* ========================================
   GLOBAL / BODY — SAMAKAN TEMA REGISTER
   ======================================== */
body {
    margin: 0;
    font-family: 'Roboto', system-ui, sans-serif;

    background:
        radial-gradient(circle at top, rgba(15, 23, 42, 0.75), rgba(3, 7, 18, 0.98)),
        url('../PICTURESET/SPLOGIN.jpg') center/cover no-repeat;

    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9f9f9;
}

/* Center container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ========================================
   LOGIN BOX — GLASS DARK + GOLD TONE
   ======================================== */
.login-box {
    width: 350px;
    padding: 32px 34px;

    background: radial-gradient(circle at top, rgba(23,23,23,0.96), rgba(12,10,9,0.96));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 22px;

    box-shadow:
        0 18px 45px rgba(0,0,0,0.8),
        0 0 0 1px rgba(94, 76, 62, 0.5);

    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efek garis dekoratif */
.login-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05),
        transparent 35%,
        rgba(176, 132, 74, 0.4),
        transparent 70%
    );
    opacity: 0.35;
    pointer-events: none;
}

.login-box > * {
    position: relative;
    z-index: 1;
}

/* ========================================
   LOGO
   ======================================== */
.logo {
    width: 250px;
    max-width: 100%;
    margin-bottom: 10px;
}

/* ========================================
   TITLE
   ======================================== */
.login-box h2 {
    font-size: 1.25rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #fdf6ea;
}

/* ========================================
   INPUT — SAMA DENGAN REGISTER
   ======================================== */
.login-box input {
    width: 100%;
    padding: 11px 14px;
    margin: 10px 0;

    border-radius: 999px;
    border: 1px solid rgba(75, 59, 45, 0.9);
    background: radial-gradient(circle at top, #18120d, #0f0b09);

    color: #f9f9f9;
    font-size: 0.9rem;

    box-shadow:
        0 0 0 1px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.04);

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.12s ease;
}

.login-box input::placeholder {
    color: #8b8176;
}

.login-box input:focus {
    border-color: #b0844a;
    background: radial-gradient(circle at top, #22160e, #100b08);

    box-shadow:
        0 0 0 1px rgba(176,132,74,0.55),
        0 0 0 4px rgba(176,132,74,0.18);

    transform: translateY(-1px);
}

/* ========================================
   BUTTON LOGIN — MIRIP BUTTON REGISTER
   ======================================== */
.btn-login {
    width: 100%;
    padding: 12px;
    margin-top: 14px;

    border-radius: 999px;
    border: none;
    cursor: pointer;

    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    background: linear-gradient(135deg, #b0844a, #8b5e34);
    color: #0b0704;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.9),
        0 0 0 1px rgba(43,27,18,0.9);

    transition:
        transform 0.12s ease,
        box-shadow 0.18s ease,
        filter 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 16px 40px rgba(0,0,0,0.95),
        0 0 0 1px rgba(67,40,25,0.9);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.9),
        0 0 0 1px rgba(67,40,25,0.9);
}

/* ========================================
   TEXT BAWAH
   ======================================== */
.login-box p,
.login-box a {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #cec6ba;
    text-decoration: none;
}

.login-box a:hover {
    color: #ffe3b8;
    text-shadow: 0 0 8px rgba(250,204,145,0.6);
}

/* ========================================
   REGISTER LINK — DISESUAIKAN WARNA REGISTER
   ======================================== */
.btn-register {
    display: block;
    margin-top: 14px;
    padding: 12px;

    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    color: #0b0704;

    background: linear-gradient(135deg, #b0844a, #8b5e34);
    box-shadow:
        0 12px 28px rgba(0,0,0,0.8),
        0 0 0 1px rgba(43,27,18,0.9);

    transition:
        transform 0.12s ease,
        filter 0.2s ease,
        box-shadow 0.18s ease;
}

.btn-register:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

/* ========================================
   RESPONSIVE — MOBILE FRIENDLY
   ======================================== */
@media (max-width: 480px) {
    .login-box {
        width: 92%;
        padding: 26px 22px;
        border-radius: 18px;
    }

    .logo {
        width: 200px;
    }

    .login-box h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {

    /* card sedikit mengecil & padding berkurang */
    .login-box {
        width: 85%;
        max-width: 380px;

        padding: 26px 26px;
        border-radius: 20px;

        box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.85),
            0 0 0 1px rgba(94, 76, 62, 0.45);
    }

    /* logo mengecil sedikit */
    .logo {
        width: 220px;
        margin-bottom: 8px;
    }

    /* judul lebih kecil */
    .login-box h2 {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    /* input sedikit lebih padat */
    .login-box input {
        padding: 10px 13px;
        font-size: 0.9rem;
        margin: 9px 0;
    }

    /* tombol login */
    .btn-login {
        padding: 11px;
        font-size: 0.88rem;
        max-width: 90%;
    }

    /* tombol register */
    .btn-register {
        padding: 11px;
        font-size: 0.88rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* teks bawah */
    .login-box p,
    .login-box a {
        font-size: 0.83rem;
        margin-top: 12px;
    }
}