/* ============================================
   AUTH.CSS - Style untuk halaman autentikasi
   Login, Register, Ganti Password, Lupa Password
   Dipakai di: alumni/login, siswa/login, dll.
   ============================================ */

/* Reset */
.auth-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   AUTH CARD
   ============================================ */
.auth-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    animation: authFadeUp 0.5s ease;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   AUTH HEADER
   ============================================ */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    overflow: hidden;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.auth-logo i {
    font-size: 36px;
    color: #fff;
}

.auth-logo.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* ============================================
   FORM GROUP
   ============================================ */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper i.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.auth-form-input {
    width: 100%;
    padding: 14px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14.5px;
    font-family: inherit;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.25s;
    font-weight: 500;
}

.auth-form-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-form-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.auth-toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 15px;
}

.auth-toggle-pass:hover {
    color: #2563eb;
    background: #dbeafe;
}

/* Password strength indicator */
.auth-pass-strength {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.auth-pass-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 4px;
}

.auth-pass-strength-bar.weak   { width: 33%; background: #ef4444; }
.auth-pass-strength-bar.medium { width: 66%; background: #f59e0b; }
.auth-pass-strength-bar.strong { width: 100%; background: #10b981; }

/* ============================================
   ALERT
   ============================================ */
.auth-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.auth-alert i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.auth-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #2563eb;
}

.auth-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.auth-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* ============================================
   BUTTON
   ============================================ */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    text-decoration: none;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    box-shadow: none;
}

.auth-btn-secondary:hover {
    background: #e2e8f0;
    box-shadow: none;
}

/* ============================================
   AUTH FOOTER
   ============================================ */
.auth-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.8;
}

.auth-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   AUTH INFO BOX
   ============================================ */
.auth-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 18px;
}

.auth-info-box strong {
    color: #0f172a;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .auth-card {
        padding: 28px 22px;
        border-radius: 20px;
    }
    .auth-header h1 {
        font-size: 20px;
    }
    .auth-logo {
        width: 68px;
        height: 68px;
    }
    .auth-form-input {
        padding: 12px 42px;
        font-size: 14px;
    }
}