/* ========================================
   eBrands Auth Modal Styles
   Modern, clean design matching eBrands brand
   ======================================== */

:root {
    --ebrands-primary: #112FBF;
    --ebrands-primary-dark: #0d2599;
    --ebrands-primary-light: #1a3ed4;
    --ebrands-black: #000000;
    --ebrands-black-hover: #1a1a1a;
    --ebrands-whatsapp: #25D366;
    --ebrands-whatsapp-hover: #20BA5A;
    --ebrands-accent: #FF6B35;
    --ebrands-success: #10b981;
    --ebrands-error: #ef4444;
    --ebrands-warning: #f59e0b;
    --ebrands-text-dark: #1e293b;
    --ebrands-text-gray: #64748b;
    --ebrands-text-light: #94a3b8;
    --ebrands-bg-light: #f8fafc;
    --ebrands-bg-gray: #f1f5f9;
    --ebrands-border: #e2e8f0;
    --ebrands-shadow: rgba(0, 0, 0, 0.1);
}

/* Modal Overlay */
.auth-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 9999 !important;
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

/* Modal Content */
.auth-modal-content {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 0 !important;
    width: 94% !important;
    max-width: 500px !important;
    max-height: 92vh !important;
    box-shadow: 0 25px 60px -12px rgba(17, 47, 191, 0.25), 
                0 8px 16px -8px rgba(17, 47, 191, 0.15) !important;
    border: 1px solid rgba(17, 47, 191, 0.08) !important;
    animation: authModalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 20px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
}

.auth-modal-content.auth-modal-wide {
    max-width: 580px !important;
}

/* Modal Close Button */
.auth-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--ebrands-bg-light);
    border: 2px solid var(--ebrands-border);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 24px;
    color: var(--ebrands-text-gray);
    z-index: 10;
    font-weight: 400;
    line-height: 1;
}

.auth-modal-close:hover {
    background: var(--ebrands-black);
    border-color: var(--ebrands-black);
    color: white;
    transform: scale(1.05);
}

/* Modal Body */
.auth-modal-body {
    flex: 1;
    padding: 48px 40px 40px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Modal Header */
.auth-modal-header {
    text-align: left;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--ebrands-bg-gray);
}

.auth-modal-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ebrands-text-dark);
    letter-spacing: -0.02em;
}

.auth-modal-header p {
    color: var(--ebrands-text-gray);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
}

.lang-switcher-btn {
    background: none;
    border: none;
    padding: 3px 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ebrands-text-light);
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-family: inherit;
    line-height: 1;
}

.lang-switcher-btn:hover {
    color: var(--ebrands-primary);
    background: var(--ebrands-bg-gray);
}

.lang-switcher-btn.active {
    color: var(--ebrands-primary);
    font-weight: 700;
}

.lang-switcher-divider {
    color: var(--ebrands-border);
    font-size: 0.75rem;
    user-select: none;
}

/* Flash Messages */
.auth-flash-messages {
    margin-bottom: 24px;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    animation: authSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-alert-icon {
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 2px solid rgba(16, 185, 129, 0.2);
    color: #047857;
}

.auth-alert-success .auth-alert-icon {
    color: var(--ebrands-success);
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.auth-alert-error .auth-alert-icon {
    color: var(--ebrands-error);
}

.auth-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    color: currentColor;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-alert-close:hover {
    opacity: 1;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.auth-form-label {
    font-weight: 600;
    color: var(--ebrands-text-dark);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.auth-required-asterisk {
    color: var(--ebrands-error);
    margin-left: 4px;
}

.auth-form-note {
    font-size: 0.85rem;
    color: var(--ebrands-text-gray);
    margin-top: 6px;
    line-height: 1.5;
}

/* Input Styles */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form-input {
    width: 100%;
    padding: 15px 48px 15px 16px;
    background: var(--ebrands-bg-light);
    border: 2px solid var(--ebrands-border);
    border-radius: 12px;
    color: var(--ebrands-text-dark);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--ebrands-black);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.auth-form-input::placeholder {
    color: var(--ebrands-text-light);
}

.auth-form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Password Toggle */
.auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ebrands-text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.auth-password-toggle:hover {
    color: var(--ebrands-black);
    background: var(--ebrands-bg-gray);
}

.auth-eye-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
}

.auth-eye-icon:not(.closed)::before {
    content: '👁';
}

.auth-eye-icon.closed::before {
    content: '—';
    font-weight: 700;
}

/* Input Status */
.auth-input-status {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9;
}

.auth-input-status.success {
    color: var(--ebrands-success);
    opacity: 1;
}

.auth-input-status.error {
    color: var(--ebrands-error);
    opacity: 1;
}

.auth-input-status.loading {
    opacity: 1;
    animation: authSpin 1s linear infinite;
}

/* Phone Input */
.auth-phone-input-wrapper {
    display: flex;
    position: relative;
    width: 100%;
}

.auth-country-selector {
    position: relative;
    flex-shrink: 0;
}

.auth-country-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 16px;
    background: var(--ebrands-bg-light);
    border: 2px solid var(--ebrands-border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--ebrands-text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    height: 53px;
    font-family: inherit;
}

.auth-country-dropdown-btn:hover {
    background: var(--ebrands-bg-gray);
}

.auth-country-dropdown-btn:focus {
    outline: none;
    border-color: var(--ebrands-black);
    background: #ffffff;
}

.auth-country-code {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ebrands-text-dark);
}

.auth-dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--ebrands-text-gray);
}

.auth-country-dropdown-btn.active .auth-dropdown-arrow {
    transform: rotate(180deg);
}

/* Country Dropdown */
.auth-country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #ffffff;
    border: 2px solid var(--ebrands-border);
    border-radius: 16px;
    z-index: 2000;
    display: none;
    box-shadow: 0 20px 40px -12px rgba(17, 47, 191, 0.2);
    overflow: hidden;
    max-height: 360px;
}

.auth-country-dropdown.active {
    display: block;
    animation: authFadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-country-search-wrapper {
    padding: 16px;
    border-bottom: 2px solid var(--ebrands-bg-gray);
    background: var(--ebrands-bg-light);
}

.auth-country-search {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--ebrands-border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--ebrands-text-dark);
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
}

.auth-country-search:focus {
    border-color: var(--ebrands-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.auth-country-list {
    max-height: 280px;
    overflow-y: auto;
}

.auth-country-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--ebrands-bg-gray);
}

.auth-country-option:last-child {
    border-bottom: none;
}

.auth-country-option:hover {
    background: rgba(17, 47, 191, 0.05);
    padding-left: 22px;
}

.auth-country-name {
    flex: 1;
    font-size: 0.95rem;
    color: var(--ebrands-text-dark);
    font-weight: 500;
}

.auth-country-option .auth-country-code {
    font-size: 0.9rem;
    color: var(--ebrands-text-gray);
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.auth-phone-input {
    flex: 1;
    border-radius: 0 12px 12px 0 !important;
    border-left: none !important;
    min-width: 0;
}

.auth-phone-input-wrapper .auth-input-status {
    right: 16px;
}

/* Feedback */
.auth-form-feedback {
    font-size: 0.875rem;
    margin-top: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 1.5;
}

.auth-form-feedback.success {
    color: var(--ebrands-success);
    opacity: 1;
}

.auth-form-feedback.error {
    color: var(--ebrands-error);
    opacity: 1;
}

/* Checkbox */
.auth-remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.auth-checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.auth-checkmark {
    width: 20px;
    height: 20px;
    background: var(--ebrands-bg-light);
    border: 2px solid var(--ebrands-border);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.auth-checkmark.checked {
    background: var(--ebrands-black);
    border-color: var(--ebrands-black);
    transform: scale(1.05);
}

.auth-checkmark.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-checkbox-text {
    color: var(--ebrands-text-gray);
    font-weight: 500;
}

/* Link */
.auth-link {
    color: var(--ebrands-text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ebrands-black);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-link:hover {
    color: var(--ebrands-black);
}

.auth-link:hover::after {
    width: 100%;
}

/* I'm not a robot checkbox (reCAPTCHA style - Light Theme) */
.auth-recaptcha-box {
    margin: 20px 0;
    padding: 14px 16px;
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
    transition: border-color 0.2s ease;
}

.auth-recaptcha-box:hover {
    border-color: #c1c1c1;
}

.auth-recaptcha-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.auth-recaptcha-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.auth-recaptcha-checkbox input[type="checkbox"] {
    display: none;
}

.auth-recaptcha-checkmark {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    background: #fff;
    border-radius: 2px;
    position: relative;
    transition: all 0.15s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.auth-recaptcha-checkbox:hover .auth-recaptcha-checkmark {
    border-color: #4d90fe;
}

.auth-recaptcha-checkbox input[type="checkbox"]:checked ~ .auth-recaptcha-checkmark {
    background: #1a73e8;
    border-color: #1a73e8;
}

.auth-recaptcha-checkbox input[type="checkbox"]:checked ~ .auth-recaptcha-checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.auth-recaptcha-text {
    color: #000;
    font-size: 14px;
    font-weight: 500;
    font-family: Roboto, helvetica, arial, sans-serif;
    user-select: none;
    line-height: 1.4;
}

.auth-recaptcha-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding-left: 12px;
}

.auth-recaptcha-icon {
    width: 40px;
    height: 40px;
    display: block;
}

.auth-recaptcha-brand {
    font-size: 9px;
    color: #9b9b9b;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-family: Roboto, helvetica, arial, sans-serif;
}

/* Buttons */
.auth-submit-btn,
.auth-training-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.auth-submit-btn {
    background: var(--ebrands-black);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-submit-btn:hover:not(:disabled) {
    background: var(--ebrands-black-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.auth-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-training-btn {
    background: var(--ebrands-bg-light);
    border: 2px solid var(--ebrands-border);
    color: var(--ebrands-text-dark);
}

.auth-training-btn:hover:not(:disabled) {
    background: #ffffff;
    border-color: var(--ebrands-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.auth-submit-btn:disabled,
.auth-training-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.auth-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: authSpin 1s linear infinite;
}

/* Form Footer */
.auth-form-footer {
    text-align: center;
    margin-top: 12px;
    padding-top: 24px;
    border-top: 2px solid var(--ebrands-bg-gray);
}

.auth-form-footer p {
    color: var(--ebrands-text-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* Sub-Modal (Training & Contact) */
.auth-sub-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10000 !important;
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    align-items: center;
    justify-content: center;
}

.auth-sub-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.auth-sub-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 94%;
    max-width: 480px;
    max-height: 85vh;
    box-shadow: 0 25px 50px -12px rgba(17, 47, 191, 0.3);
    animation: authModalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-sub-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 2px solid var(--ebrands-bg-gray);
    background: linear-gradient(135deg, var(--ebrands-bg-light), #ffffff);
}

.auth-sub-modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ebrands-text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.auth-sub-modal-close {
    background: var(--ebrands-bg-gray);
    border: 2px solid var(--ebrands-border);
    color: var(--ebrands-text-gray);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    line-height: 1;
}

.auth-sub-modal-close:hover {
    background: var(--ebrands-black);
    color: white;
    border-color: var(--ebrands-black);
    transform: rotate(90deg) scale(1.05);
}

.auth-sub-modal-body {
    padding: 28px;
    overflow-y: auto;
}

.auth-sub-modal-description {
    color: var(--ebrands-text-gray);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.auth-sub-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

.auth-sub-modal-cancel,
.auth-sub-modal-confirm {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-family: inherit;
}

.auth-sub-modal-cancel {
    background: var(--ebrands-bg-light);
    border: 2px solid var(--ebrands-border);
    color: var(--ebrands-text-dark);
}

.auth-sub-modal-cancel:hover {
    background: var(--ebrands-bg-gray);
}

.auth-sub-modal-confirm {
    background: var(--ebrands-black);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-sub-modal-confirm:hover {
    background: var(--ebrands-black-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.auth-sub-modal-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact Options */
.auth-contact-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-contact-option {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--ebrands-bg-light), #ffffff);
    border: 2px solid var(--ebrands-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-contact-option:hover {
    background: linear-gradient(135deg, #ffffff, var(--ebrands-bg-light));
    border-color: var(--ebrands-black);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.auth-contact-option:active {
    transform: translateY(-2px);
}

.auth-option-icon {
    width: 60px;
    height: 60px;
    background: var(--ebrands-black);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white !important;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.auth-option-icon.whatsapp {
    background: var(--ebrands-whatsapp);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
}

.auth-contact-option:hover .auth-option-icon.whatsapp {
    background: var(--ebrands-whatsapp-hover);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.5);
}

.auth-option-icon i,
.auth-option-icon svg {
    color: white !important;
    font-size: 26px;
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-option-text {
    flex: 1;
    text-align: left;
}

.auth-option-text h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ebrands-text-dark);
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.auth-option-text p {
    font-size: 0.875rem;
    color: var(--ebrands-text-gray);
    margin: 0;
    line-height: 1.5;
}

.auth-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 24px;
    text-align: center;
}

.auth-loading-placeholder .auth-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--ebrands-bg-gray);
    border-top: 3px solid var(--ebrands-black);
}

/* Animations */
@keyframes authModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes authSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar Styles */
.auth-modal-body::-webkit-scrollbar,
.auth-country-list::-webkit-scrollbar,
.auth-sub-modal-body::-webkit-scrollbar {
    width: 8px;
}

.auth-modal-body::-webkit-scrollbar-track,
.auth-country-list::-webkit-scrollbar-track,
.auth-sub-modal-body::-webkit-scrollbar-track {
    background: var(--ebrands-bg-gray);
    border-radius: 4px;
}

.auth-modal-body::-webkit-scrollbar-thumb,
.auth-country-list::-webkit-scrollbar-thumb,
.auth-sub-modal-body::-webkit-scrollbar-thumb {
    background: rgba(17, 47, 191, 0.3);
    border-radius: 4px;
}

.auth-modal-body::-webkit-scrollbar-thumb:hover,
.auth-country-list::-webkit-scrollbar-thumb:hover,
.auth-sub-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 47, 191, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-modal-content {
        max-width: 96% !important;
        margin: 12px !important;
        max-height: 96vh !important;
    }

    .auth-modal-body {
        padding: 40px 28px 28px;
    }

    .auth-modal-close {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .auth-modal-header h2 {
        font-size: 1.9rem;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .auth-country-dropdown-btn {
        min-width: 100px;
        padding: 15px 12px;
    }

    .auth-country-dropdown {
        width: 300px;
    }

    .auth-sub-modal-content {
        max-width: 96%;
    }

    .auth-sub-modal-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .auth-sub-modal-cancel,
    .auth-sub-modal-confirm {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-modal-body {
        padding: 36px 24px 24px;
    }

    .auth-modal-header {
        padding-bottom: 20px;
        margin-bottom: 28px;
    }

    .auth-modal-header h2 {
        font-size: 1.7rem;
    }

    .auth-form-input {
        padding: 14px 44px 14px 14px;
    }

    .auth-country-dropdown-btn {
        padding: 14px 10px;
        min-width: 90px;
        height: 51px;
    }

    .auth-country-dropdown {
        width: 280px;
    }

    .auth-recaptcha-box {
        padding: 12px 14px;
        min-height: 70px;
    }

    .auth-recaptcha-main {
        gap: 10px;
    }

    .auth-recaptcha-text {
        font-size: 13px;
    }

    .auth-recaptcha-icon {
        width: 32px;
        height: 32px;
    }

    .auth-recaptcha-brand {
        font-size: 8px;
    }

    .auth-submit-btn,
    .auth-training-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .auth-contact-option {
        padding: 18px 20px;
        gap: 14px;
    }

    .auth-option-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}
