/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container Login */
.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px; /* Diperlebar sedikit */
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

/* Header - Modifikasi untuk logo besar */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    max-width: 220px; /* Lebar maksimum logo */
    height: auto; /* Tinggi menyesuaikan proporsi */
    margin-bottom: 20px;
    object-fit: contain; /* Pastikan logo tidak terdistorsi */
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #64748b;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button */
.login-button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 8px;
}

.login-button:hover {
    background-color: #2563eb;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #64748b;
}

.login-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    text-align: right;
    margin-top: 4px;
}

/* Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .login-logo {
        max-width: 180px; /* Lebih kecil di mobile */
    }
}

/* Register */

/* Tambahan spesifik untuk register page */
.password-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

/* Spesifik untuk halaman register */
.register-form .form-group {
    margin-bottom: 15px;
}

/* Untuk tampilan yang lebih rapi pada form panjang */
.login-container {
    max-width: 500px; /* Sedikit lebih lebar dari login */
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 25px 15px;
    }
}

/* Style untuk select dropdown */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.text-danger {
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* assets/css/login.css */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}