/* Budli Auth Parity Stylings */
.auth-page-container {
    background: #fdfdfd !important;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    font-family: 'Inter', sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.auth-tabs-header {
    display: flex;
    background: #f8f9fa;
    padding: 6px;
    border-bottom: 1px solid #eee;
}

.auth-tabs-header a, .auth-tabs-header button {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    color: #666 !important;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.auth-tabs-header .active-tab {
    background: #AF2054 !important;
    color: #fff !important;
}

.auth-card-body {
    padding: 30px;
}

.budli-form-label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
}

.budli-input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.budli-input:focus {
    outline: none;
    border-color: #007BB6;
    box-shadow: 0 0 0 3px rgba(0, 123, 182, 0.1);
}

.budli-btn-primary {
    width: 100%;
    height: 48px;
    background: #007BB6;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.budli-btn-primary:not(:disabled):hover {
    background: #006da2;
}

.budli-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background: #eee;
}

.auth-divider span {
    background: #fff;
    padding: 0;
    flex: 0 0 auto;
    color: #999;
    font-size: 12px;
    font-weight: 800;
}

.google-btn {
    width: 100%;
    height: 48px;
    border: 1px solid #dadce0;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: #3c4043;
    cursor: pointer;
}

.auth-footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.auth-footer-links a {
    font-size: 13px;
    font-weight: 700;
    color: #333 !important;
    text-decoration: none !important;
}

/* Modal Specifics */
.budli-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
}

.budli-modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    padding: 15px;
}

.budli-modal-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.otp-verification-area {
    padding: 15px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.otp-input-box {
    text-align: center;
    font-size: 24px;
    letter-spacing: 5px;
    font-weight: 700;
}

/* Enhanced UX: Notifications & Loaders */
/* Centralized Notifications: Top-Left, Fixed Width, Fit Content */
.auth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #333;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 200000;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 350px;
    height: auto;
    max-height: 200px;
    overflow-y: auto;
    transform: translateX(-120%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    border-left: 5px solid rgba(255,255,255,0.2);
    line-height: 1.4;
    box-sizing: border-box;
}

.auth-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.auth-notification.error, .auth-notification.danger {
    background: #AF2054;
    border-left-color: #f8d7da;
}

.auth-notification.success {
    background: #28a745;
    border-left-color: #d4edda;
}

.auth-notification.warning {
    background: #ffc107;
    color: #333;
    border-left-color: #856404;
}

@media (max-width: 576px) {
    .auth-notification {
        top: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        transform: translateY(-100px);
    }
    .auth-notification.show {
        transform: translateY(0);
    }
}

.budli-input.is-invalid {
    border-color: #AF2054 !important;
    background-color: #fff8f9;
}

.auth-invalid-feedback {
    color: #AF2054;
    font-size: 12px;
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 15px;
    display: none;
}

.is-invalid + .auth-invalid-feedback {
    display: block;
}

.auth-loading-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.auth-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #eee;
    border-top-color: #AF2054;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

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

.auth-slow-message {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    display: none;
}

.auth-slow-message.show {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Terms & Conditions Page */
.terms-page-header { padding: 40px 0 20px; text-align: center; border-bottom: 1px solid #eee; margin-bottom: 30px; }
.terms-trust-banner { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #777; margin-bottom: 10px; font-weight: 600; }
.terms-page-header h1 { font-size: 36px; color: #333; margin-bottom: 10px; }
.terms-page-header .breadcrumbs { color: #999; font-size: 14px; }
.terms-page-header .breadcrumbs a { color: var(--auth-primary); text-decoration: none; }

.content-narrow { max-width: 900px; margin: 0 auto; line-height: 1.7; color: #444; }
.toc-list { list-style: none; padding: 0; background: #f9f9f9; border-radius: 12px; padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 40px; }
.toc-item { cursor: pointer; color: var(--auth-primary); font-weight: 500; transition: 0.2s; }
.toc-item:hover { text-decoration: underline; color: var(--auth-secondary); }

.section-block { margin-bottom: 50px; scroll-margin-top: 100px; }
.section-title { font-size: 24px; color: #222; margin-bottom: 15px; border-left: 4px solid var(--auth-primary); padding-left: 15px; }
.section-content { font-size: 16px; }
.section-content p { margin-bottom: 15px; }
.section-content ol, .section-content ul { padding-left: 20px; margin-bottom: 15px; }
.section-content li { margin-bottom: 8px; }

@media (max-width: 768px) {
    .terms-page-header h1 { font-size: 28px; }
    .toc-list { grid-template-columns: 1fr; }
}
/* Password Toggle */
.password-toggle-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
    font-size: 16px;
    transition: color 0.2s;
    background: #fff;
    padding-left: 5px;
}
.password-toggle-icon:hover {
    color: #AF2054;
}
.password-toggle-wrapper .budli-input {
    padding-right: 45px;
    margin-bottom: 0;
}
/* User Account Dropdown */
.user-login-panel {
    position: relative;
    display: inline-block;
}

.dropdown-menu-new {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    margin-top: 10px;
    overflow: hidden;
    animation: dropdownFade 0.2s ease-out;
    border: 1px solid #eee;
}

/* Hover bridge to prevent closing on gap */
.user-login-panel::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    display: none;
}

.user-login-panel:hover .dropdown-menu-new,
.user-login-panel:hover::after {
    display: block;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item-new {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.dropdown-item-new:hover {
    background: #f8f9fa;
    color: #AF2054 !important;
}

.dropdown-item-new i, .dropdown-item-new iconify-icon {
    font-size: 18px;
    color: #999;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

.user-logged-in-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #28a745;
    border: 2px solid white;
    border-radius: 50%;
}

