* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #212529;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 400px;
    width: 100%;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 85, 46, 0.1); /* sesuaikan bayangan */
}

header {
    text-align: center;
    margin-bottom: 25px;
    color: #0F552E; /* warna utama */
}

header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #0F552E;
}

header p {
    font-size: 14px;
    color: #6c757d;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
}

input:focus {
    outline: none;
    border-color: #0F552E; /* border fokus sesuai tema */
    background-color: #fff;
}

button {
    background-color: #0F552E; /* tombol utama */
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0D4425; /* lebih gelap untuk efek hover */
}

.forgot-password {
    text-align: right;
    font-size: 14px;
    margin-top: -8px;
    margin-bottom: 15px;
}

.forgot-password a {
    color: #0F552E;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.register-link {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    color: #6c757d;
}

.register-link a {
    color: #0F552E;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Overlay gelap transparan */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
    transition: opacity 0.5s ease;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0F552E; /* spinner sesuai warna utama */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsif */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    header h1 {
        font-size: 24px;
    }
}