/* ========================================== */
/* AUTH PAGES STYLING */
/* ========================================== */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.auth-page {
    background: #f4f4f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.auth-header {
    background: var(--gradient);
    padding: 30px;
    text-align: center;
    color: white;
}

.auth-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.auth-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.auth-header .logo-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.auth-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 6px;
}

.form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group .form-control.is-invalid {
    border-color: #dc3545;
}

.form-group .invalid-feedback {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Input with icon */
.input-group-icon {
position: relative;
display: flex;
align-items: center;
}
.input-group-icon i:not(.password-toggle i) {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
color: #adb5bd;
z-index: 2;
}
.input-group-icon .form-control {
padding-left: 42px;
padding-right: 45px; /* Tambah padding kanan untuk icon toggle */
}
/* Password toggle button */
.password-toggle {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: #adb5bd;
cursor: pointer;
padding: 8px;
z-index: 3;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.3s ease;
}
.password-toggle:hover {
color: var(--primary);
}
.password-toggle i {
font-size: 1rem;
margin: 0;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #adb5bd;
    background: none;
    border: none;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Buttons */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Links */
.auth-footer {
    text-align: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.85rem;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #adb5bd;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    padding: 0 15px;
}

/* Verification page specific */
.verify-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.verify-icon.success {
    color: #28a745;
}

.verify-icon.error {
    color: #dc3545;
}

.verify-icon.pending {
    color: #ffc107;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-check label {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-body {
        padding: 20px;
    }
    
    .auth-header {
        padding: 20px;
    }
}