/* ============================================================
    LOGIN PAGE — Library Theme
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #1f1611;
    color: #f5ede0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ctext x='50' y='50' font-size='80' text-anchor='middle' dominant-baseline='middle' opacity='0.03'%3E📚%3C/text%3E%3C/svg%3E");
    padding: 20px;
}

.login-box {
    background: linear-gradient(145deg, #2d2016 0%, #241a12 100%);
    padding: 50px 45px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(201, 169, 97, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    border-top: 4px solid #c9a961;
}

.login-box::before {
    content: "📚";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    background: #1f1611;
    padding: 5px 15px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #c9a961, 0 8px 20px rgba(0, 0, 0, 0.5);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 35px;
    margin-top: 10px;
    color: #c9a961;
    font-size: 26px;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #b8a88a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.login-box input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 22px;
    border: 1px solid #4a3728;
    border-radius: 6px;
    background: #241a12;
    color: #f5ede0;
    font-size: 15px;
    font-family: Arial, sans-serif;
    transition: all 0.25s;
    outline: none;
}

.login-box input:focus {
    border-color: #c9a961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
    background: #2d2016;
}

.login-box input::placeholder {
    color: #7a6b56;
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #c9a961 0%, #a88a45 100%);
    color: #1f1611;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Georgia', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.35);
    margin-top: 5px;
}

.login-box button:hover {
    background: linear-gradient(180deg, #e6c98a 0%, #c9a961 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 169, 97, 0.5);
}

.login-box button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(201, 169, 97, 0.4);
}

.error {
    background: rgba(168, 69, 59, 0.15);
    color: #e8a8a0;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 13px;
    border-left: 4px solid #a8453b;
    font-family: Arial, sans-serif;
    letter-spacing: 0.3px;
}

.error::before {
    content: "⚠ ";
    font-size: 15px;
}

/* Footer text */
.login-box::after {
    content: "Perpustakaan Digital — Sistem Manajemen";
    display: block;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #4a3728;
    color: #7a6b56;
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .login-box {
        padding: 40px 25px;
    }

    .login-box h1 {
        font-size: 22px;
    }
}