/* Auth Modern — centered-card login layout for Adal Medical University */

.auth-modern-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1A237E 0%, #C62828 100%);
    padding: 16px;
}

.auth-modern-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 100%;
    padding: 40px 32px 32px;
    text-align: center;
}

.auth-modern-logo {
    display: block;
    max-height: 100px;
    margin: 0 auto 12px;
}

.auth-modern-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.auth-modern-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 24px;
}

.auth-modern-input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 16px;
    background: #fff;
    color: #333;
}

.auth-modern-input:focus {
    border-color: #C62828;
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.15);
}

.auth-modern-input.is-invalid {
    border-color: #dc3545;
}

.auth-modern-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
}

.auth-modern-remember label {
    margin-bottom: 0;
    cursor: pointer;
}

.auth-modern-btn {
    display: block;
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: #C62828;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.auth-modern-btn:hover {
    background: #8E0000;
}

.auth-modern-btn:active {
    transform: scale(0.98);
}

.auth-modern-links {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
}

.auth-modern-links a {
    color: #C62828;
    text-decoration: none;
}

.auth-modern-links a:hover {
    text-decoration: underline;
}

.auth-modern-links p {
    margin-bottom: 6px;
}

.auth-modern-copyright {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #aaa;
}

.auth-modern-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    font-size: 0.8rem;
    color: #aaa;
}

.auth-modern-divider::before,
.auth-modern-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-modern-divider span {
    padding: 0 12px;
}

#passkey-login-section:empty {
    display: none;
}

#passkey-login-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.auth-modern-btn-outline {
    background: transparent;
    color: #1A237E;
    border: 2px solid #1A237E;
}

.auth-modern-btn-outline:hover {
    background: #1A237E;
    color: #fff;
}

.invalid-feedback {
    display: block;
    text-align: left;
    font-size: 0.8rem;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* RTL support */
[dir="rtl"] .auth-modern-input {
    text-align: right;
}

[dir="rtl"] .auth-modern-remember {
    flex-direction: row-reverse;
}

[dir="rtl"] .invalid-feedback {
    text-align: right;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-modern-card {
        max-width: 100%;
        padding: 32px 20px 24px;
        border-radius: 12px;
    }

    .auth-modern-logo {
        max-height: 70px;
    }
}
