/* ============================================
   REGISTRASI - Sistem Gudang BASARNAS
   (Konsisten dengan login.css)
   ============================================ */

/* MOBILE ONLY */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem !important;
        max-width: 95% !important;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://gudang-basarnas-banten.id/images/BASARNAS.webp') no-repeat center center;
    background-size: cover;
    position: relative;
}

/* Overlay gelap supaya form terbaca */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* --- Container Card --- */
.container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-top: 6px solid #dc2626;
}

/* --- Header --- */
.container h2 {
    text-align: center;
    color: #dc2626;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.container h2 + .subtitle {
    display: block;
    text-align: center;
    color: #111827;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* --- Error Message --- */
.error {
    color: #dc2626;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
    padding: 0.75rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    animation: shakeError 0.5s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* --- Form --- */
form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #111827;
    font-weight: bold;
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dc2626;
    border-radius: 8px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #b91c1c;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
}

/* --- Button --- */
.btn {
    width: 100%;
    padding: 0.75rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: background 0.3s, transform 0.2s;
    margin-top: 0.5rem;
}

.btn:hover {
    background: #b91c1c;
}

.btn:active {
    transform: scale(0.98);
}

/* --- Link --- */
.link {
    text-align: center;
    margin-top: 1.25rem;
    color: #111827;
    font-size: 0.9rem;
}

.link a {
    color: #dc2626;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.link a:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* --- Info Tambahan --- */
.info-badge {
    text-align: center;
    margin-top: 1rem;
    padding: 0.6rem;
    background: rgba(220, 38, 38, 0.06);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #6b7280;
}

.info-badge strong {
    color: #dc2626;
}