body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Opsional: Gradasi halus */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    margin: 0;
    padding: 20px;
    color: #333;
    background-image: url('../gambar/kiic.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Gambar Logo */
.rounded-image {
    border-radius: 50%;
    display: block;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.login-container {
    background-color: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box; 
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-2px);
}

.login-container h2 {
    text-align: center;
    color: #1c2b4d;
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.75rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Input Field Modern */
.input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}

/* Efek Fokus pada Input */
.input-group input:focus {
    background-color: #fff;
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* Tombol Login Modern */
.login-button {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background-color: #0d6efd;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
    margin-top: 1rem;
}

.login-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(13, 110, 253, 0.25);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

/* Pesan Error & Sukses */
.error-message {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    padding: 0.85rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.success-message {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    padding: 0.85rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* --- STYLE IKON MATA & LUPA PASSWORD --- */
.password-wrapper {
    position: relative;
    width: 100%;
}

.input-group input[type="password"],
.input-group input[type="text"][name="password"],
.input-group input[type="text"][name="konfirmasi_password"] {
    padding-right: 3rem !important; 
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    color: #6c757d;
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.toggle-password:hover {
    background-color: #e9ecef;
    color: #495057;
}

.toggle-password svg {
    stroke: currentColor; 
    width: 20px;
    height: 20px;
}

.hide {
    display: none;
}

.options-group {
    text-align: right;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem; 
}

.options-group a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.options-group a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* --- FOOTER LINK (DAFTAR DI SINI) --- */
.register-group {
    text-align: center;
    margin-top: 2rem; 
    padding-top: 1.5rem; 
    border-top: 1px solid #dee2e6;
    font-size: 0.95rem;
    color: #6c757d;
}

.register-group a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    margin-left: 3px;
}

.register-group a:hover {
    text-decoration: underline;
    color: #0a58ca;
}

/* Responsive HP */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
        margin: 0 10px;
    }

    .login-container h2 {
        font-size: 1.5rem;
    }
}