/* Auth modals — compact, clean */

.auth-modal {
    max-width: 400px;
}

.auth-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
}

.auth-hero {
    background: linear-gradient(135deg, #1a2d7a 0%, #2a49dc 100%);
    padding: 12px 14px;
    border-radius: 0;
    margin: 0;
}

.auth-hero img {
    height: 32px !important;
    width: auto;
}

.auth-hero .fw-bold {
    font-size: 15px;
    line-height: 1.2;
}

.auth-hero small {
    font-size: 11px;
}

.auth-hero .btn-close {
    right: 10px;
    top: 10px;
    opacity: 0.85;
}

.auth-tabs {
    gap: 8px;
    padding: 12px 14px 0;
}

.auth-tabs .tab-btn {
    border: 1px solid #e2e8f0;
    background: #f8f9fb;
    color: #335793;
    border-radius: 10px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.auth-tabs .tab-btn.active {
    background: var(--dv-primary);
    color: #fff;
    border-color: var(--dv-primary);
    box-shadow: none;
}

.auth-tabs .tab-btn:not(.active):hover {
    background: #eef2ff;
    border-color: #c5d0e6;
}

.auth-modal .modal-body {
    padding: 12px 14px 16px;
}

.auth-modal .auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.auth-modal .auth-field {
    margin-bottom: 10px;
}

.auth-modal .form-control,
.auth-modal .form-select {
    height: 40px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-modal .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
    font-size: 13px;
}

.auth-modal .form-control:focus,
.auth-modal .form-select:focus {
    border-color: #335793;
    box-shadow: 0 0 0 2px rgba(51, 87, 147, 0.12);
}

.auth-modal .btn {
    height: 40px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.auth-modal .btn-primary {
    background: var(--dv-primary);
    border-color: var(--dv-primary);
}

.auth-modal .btn-primary:hover {
    background: var(--dv-primary-bright);
    border-color: var(--dv-primary-bright);
}

.auth-modal .input-group {
    align-items: stretch;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-modal .input-group:focus-within {
    border-color: #335793;
    box-shadow: 0 0 0 2px rgba(51, 87, 147, 0.12);
}

.auth-modal .input-group .form-control {
    border: none !important;
    border-radius: 0 !important;
    border-right: none !important;
    box-shadow: none !important;
    height: 40px;
}

.auth-modal .input-group .form-control:focus {
    border: none !important;
    box-shadow: none !important;
    z-index: 1;
}

.auth-modal .input-group .btn-toggle-password {
    height: 40px;
    width: 40px;
    min-width: 40px;
    padding: 0;
    border: none !important;
    border-radius: 0 !important;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: static;
    overflow: visible;
    box-shadow: none !important;
    transform: none !important;
    z-index: 1;
}

.auth-modal .input-group .btn-toggle-password::before,
.auth-modal .input-group .btn-toggle-password::after {
    display: none !important;
    content: none !important;
}

.auth-modal .input-group .btn-toggle-password:hover,
.auth-modal .input-group .btn-toggle-password:focus,
.auth-modal .input-group .btn-toggle-password:active,
.auth-modal .input-group .btn-toggle-password:focus-visible {
    background: #f8f9fb !important;
    color: var(--dv-primary) !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
}

.auth-modal .input-group .btn-toggle-password i {
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
}

.auth-modal .auth-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-modal .auth-hint.auth-hint-valid {
    color: #16a34a;
}

.auth-modal .auth-hint i {
    font-size: 12px;
}

.auth-modal .auth-hint.auth-hint-valid i {
    color: #16a34a;
}

.auth-modal #loginErrors,
.auth-modal #registerErrors,
.auth-modal #forgotPasswordMessage {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.auth-divider {
    gap: 8px;
    font-size: 12px;
    margin: 12px 0;
    color: #94a3b8;
}

.auth-modal .social-btn {
    height: 40px;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.auth-modal .social-btn svg {
    width: 18px;
    height: 18px;
}

.auth-modal .social-btn-google {
    color: #475569;
    background: #fff;
}

.auth-modal .social-btn-google:hover {
    background: #f8f9fb;
    border-color: #cbd5e1;
    color: #334155;
    transform: none;
    box-shadow: none;
}

.auth-modal .social-btn-facebook {
    color: var(--dv-primary);
    background: #fff;
}

.auth-modal .social-btn-facebook:hover {
    background: #f0f4ff;
    border-color: #c5d0e6;
    color: var(--dv-primary);
    transform: none;
    box-shadow: none;
}

.auth-modal .auth-link {
    font-size: 12px;
    color: var(--dv-primary);
    text-decoration: none;
}

.auth-modal .auth-link:hover {
    text-decoration: underline;
}

.auth-modal .btn-link {
    font-size: 12px;
    color: var(--dv-primary);
    text-decoration: none;
}

.auth-modal .btn-link:hover {
    text-decoration: underline;
}

@media (max-width: 575px) {
    .auth-modal {
        margin: 0.5rem;
    }

    .auth-modal .modal-body {
        padding: 10px 12px 14px;
    }
}
