* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E5C45C;
    --primary-color: #E5C45C;
    --primary-hover: #D4B048;
    --primary-light: rgba(229, 196, 92, 0.15);
    --text-dark: #FFFFFF;
    --text-gray: #9CA3AF;
    --text-light: #6B7280;
    --border: #2A2A2A;
    --background: #141414;
    --white: #1A1A1A;
    --error: #EF4444;
    --error-light: rgba(239, 68, 68, 0.15);
    --background-info: #d7e0f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0A0A0A;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

.registration-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    padding: 32px;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--text-dark);
}

/* Header controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--background);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-gray);
}

.theme-toggle:hover {
    border-color: var(--text-gray);
    color: var(--text-dark);
}

.theme-icon {
    width: 20px;
    height: 20px;
}

.theme-icon.hidden {
    display: none;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--background);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-gray);
}

.lang-dropdown-toggle:hover {
    border-color: var(--text-gray);
    color: var(--text-dark);
}

.lang-dropdown-toggle[aria-expanded="true"] {
    border-color: var(--primary);
    color: var(--primary);
}

.globe-icon {
    width: 20px;
    height: 20px;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.lang-option:hover {
    background: var(--background);
}

.lang-option.active {
    background: var(--primary-light);
}

.lang-option.active .lang-name {
    color: var(--primary);
    font-weight: 500;
}

.lang-flag {
    font-size: 20px;
    line-height: 1;
}

.lang-name {
    font-size: 14px;
    color: var(--text-dark);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.subtitle {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-gray);
    padding: .25rem .5rem;
    border-radius: .5rem;
}

.form-section {
    margin-bottom: 20px;
}

.section-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.account-type {
    display: flex;
    gap: 8px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--error);
}

.form-group input.error:focus,
.form-group select.error:focus {
    box-shadow: 0 0 0 3px var(--error-light);
}

.error-message {
    display: block;
    font-size: 13px;
    color: var(--error);
    margin-top: 4px;
    min-height: 18px;
}

.password-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
}

.password-wrapper input {
    flex: 1;
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--text-gray);
}

.generate-password {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.generate-password:hover {
    background: var(--border);
}

.password-hint {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.phone-wrapper {
    display: flex;
    gap: 8px;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    min-width: 70px;
    justify-content: center;
}

.phone-wrapper input {
    flex: 1;
}

.checkbox-group {
    margin-top: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--text-gray) !important;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.terms-text a {
    color: var(--primary);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: #0A0A0A;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    margin-bottom: 24px;
}

.success-icon svg {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.success-message p {
    color: var(--text-gray);
    margin-bottom: 16px;
}

.redirect-text {
    font-size: 14px;
    color: var(--text-light);
}

#countdown {
    font-weight: 600;
    color: var(--primary);
}

.error-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--error-light);
    color: var(--error);
    padding: 12px 40px 12px 16px;
    border-radius: 16px 16px 0 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-banner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 20px;
    color: var(--error);
    cursor: pointer;
    padding: 4px 8px;
}

.close-banner:hover {
    opacity: 0.7;
}

.eye-closed {
    display: none;
}

.toggle-password.showing .eye-open {
    display: none;
}

.toggle-password.showing .eye-closed {
    display: block;
}

/* Error Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    max-width: 420px;
    width: 100%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--background);
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.modal-icon {
    margin-bottom: 16px;
}

.modal-icon.error {
    color: var(--error);
}

.modal-message {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    background: var(--background);
    border-radius: 8px;
    padding: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.error-list.hidden {
    display: none;
}

.error-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-dark);
}

.error-list li:last-child {
    border-bottom: none;
}

.error-list .error-field {
    font-weight: 600;
    color: var(--error);
    text-transform: capitalize;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.btn-modal-close {
    padding: 12px 32px;
    background: var(--primary);
    color: #0A0A0A;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-modal-close:hover {
    background: var(--primary-hover);
}

/* Honeypot field - hidden from real users */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
}

/* Turnstile widget wrapper */
.turnstile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.turnstile-wrapper .cf-turnstile {
    margin-bottom: 8px;
}

/* ===== Verification Flow Styles ===== */

.verification-step {
    overflow: hidden;
    width: 100%;
}

.verification-step.hidden {
    display: none;
}

.step-header {
    padding: 16px 24px;
    background: var(--background-info);
    border-bottom: 1px solid var(--border);
    border-radius: .75rem;
    margin-bottom: 1rem;
}

.step-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
}

.step-sidebar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.step-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--background);
    border-right: 1px solid var(--border);
    transition: all 0.2s;
}

.step-item:last-child {
    border-right: none;
}

.step-item.active {
    background: var(--white);
    border-left: 3px solid #4CAF50;
}

.step-item.completed {
    background: var(--white);
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: var(--text-dark);
}

.step-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item.active .step-check {
    border-color: #4CAF50;
}

.step-item.completed .step-check {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.step-content {
    padding: 40px;
}

.step-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px;
    text-align: center;
}

.step-content > p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
    text-align: center;
}

.email-display {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
    text-align: center;
    margin: 0 0 30px;
}

.change-email-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 14px;
    text-decoration: underline;
}

.change-email-link:hover {
    color: var(--text-dark);
}

/* PIN Input Styles */
.pin-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 10px;
}

.pin-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--background);
    color: var(--text-dark);
    transition: all 0.2s;
}

.pin-input:focus {
    border-color: #4CAF50;
    outline: none;
    background: var(--white);
}

.pin-input::placeholder {
    color: var(--text-muted);
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin: 20px 0 30px;
}

.resend-section p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-gray);
}

.resend-section a {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.resend-section a:hover {
    text-decoration: underline;
}

.resend-section a.hidden,
.resend-section p.hidden {
    display: none;
}

/* Questionnaire Form */
.questionnaire-form .form-group {
    margin-bottom: 20px;
}

.disclaimer-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 20px 0;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
}

.pep-question {
    margin-top: 24px;
}

.pep-label {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 16px;
}

.radio-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #4CAF50;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
}

/* Confirmation Step */
.confirmation-content {
    text-align: center;
}

.confirmation-content .success-icon.large {
    margin-bottom: 24px;
}

.confirmation-content h2 {
    color: #4CAF50;
    margin-bottom: 16px;
}

.confirmation-content > p {
    margin-bottom: 30px;
}

.confirmation-content .submit-btn.primary {
    background: #4CAF50;
    color: white;
    margin-bottom: 30px;
}

.confirmation-content .submit-btn.primary:hover {
    background: #43A047;
}

.verification-prompt {
    background: transparent;
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
}

.verification-prompt h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.verification-prompt p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0 0 20px;
    line-height: 1.5;
}

.verification-prompt .submit-btn.secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.verification-prompt .submit-btn.secondary:hover {
    background: var(--white);
    border-color: var(--text-gray);
}

/* Portal Link */
.portal-link {
    display: block;
    margin-top: 24px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

.portal-link:hover {
    text-decoration: underline;
}

/* Login Flow Content */
#loginFlowContent {
    text-align: center;
}

#loginFlowContent h2 {
    margin-bottom: 12px;
}

#loginFlowContent p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

/* Change Email Modal */
#changeEmailModal .modal-body {
    text-align: left;
}

#changeEmailModal .modal-body > p {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 14px;
}

#changeEmailModal .form-group {
    margin-bottom: 0;
}

#changeEmailModal .modal-footer {
    gap: 12px;
}

.btn-modal-cancel {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-cancel:hover {
    background: var(--background);
    color: var(--text-dark);
}

.btn-modal-confirm {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-confirm:hover {
    background: #43A047;
}

.btn-modal-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Disclaimer Modal */
.disclaimer-modal {
    max-width: 500px;
}

.disclaimer-modal-content {
    padding: 32px;
    text-align: center;
}

.disclaimer-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.disclaimer-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 16px;
}

.disclaimer-body {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 28px;
}

.disclaimer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-disclaimer-accept {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-disclaimer-accept:hover {
    background: var(--primary-hover);
}

.btn-disclaimer-decline {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-disclaimer-decline:hover {
    background: var(--background);
    color: var(--text-dark);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .step-sidebar {
        flex-direction: column;
    }
    
    .step-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .step-item:last-child {
        border-bottom: none;
    }
    
    .step-content {
        padding: 24px;
    }
    
    .pin-inputs {
        gap: 6px;
    }
    
    .pin-input {
        width: 44px;
        height: 52px;
        font-size: 20px;
    }
}



@media (max-width: 600px) {
    .container {
        padding: 0px 20px;
    }
    .registration-card {
        background: transparent !important;
        border-radius: 0px !important;
        box-shadow: none !important;
        border: none !important;
        padding: 10px !important;
        position: relative !important;
    }
}

.card-header {
    padding: 1rem; border-bottom: 1px solid #292929;
}
.lockout-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    color: #f87171;
    font-size: 14px;
}

.register-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.register-link a:hover {
    text-decoration: underline;
}

.login-link-top {
    text-align: right;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted, #888);
}

.login-link-top a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 4px;
}

.login-link-top a:hover {
    text-decoration: underline;
}

.forgot-password-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

#forgotPasswordModal .modal-content {
    max-width: 400px;
    padding: 32px;
}

#forgotPasswordModal h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: var(--text-dark);
}

#forgotPasswordModal p {
    margin: 0 0 24px 0;
    color: var(--text-gray);
    font-size: 14px;
}

#forgotPasswordModal .form-group {
    margin-bottom: 20px;
}

#forgotPasswordModal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 20px 0;
}

.success-message svg {
    flex-shrink: 0;
}

.success-message span {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

.success-message.hidden {
    display: none;
}

.ext-error-container {
    text-align: center;
    padding: 40px 20px;
}

.ext-error-container .error-icon {
    margin-bottom: 20px;
}

.ext-error-container h1 {
    color: #dc2626;
    margin-bottom: 10px;
}

.ext-error-container p {
    color: var(--text-secondary);
}

.ext-user-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.ext-user-info p {
    margin: 0;
    color: var(--text-secondary);
}

.ext-user-info strong {
    color: var(--text-primary);
}

.resend-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.resend-section a:hover {
    text-decoration: underline;
}

footer{
    font-size: 11px;
    width: 100%;
    padding: 1rem;
    max-width: 72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-top: 1px solid #343434;
    margin-top: 2rem;
    color: #5f5f5f;
}

/* RTL Support */
html[dir="rtl"] body,
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .card-header {
    flex-direction: row-reverse;
}

body.rtl .header-controls {
    flex-direction: row-reverse;
}

body.rtl .form-group label {
    text-align: right;
}

body.rtl .password-wrapper .toggle-password {
    right: auto;
    left: 12px;
}

body.rtl .password-wrapper input {
    padding-right: 16px;
    padding-left: 45px;
}

body.rtl .phone-input-wrapper {
    flex-direction: row-reverse;
}

body.rtl .phone-input-wrapper .country-code {
    border-radius: 0 8px 8px 0;
    border-right: none;
    border-left: 1px solid var(--border);
}

body.rtl .phone-input-wrapper input {
    border-radius: 8px 0 0 8px;
}

body.rtl .trust-badges {
    flex-direction: row-reverse;
}

body.rtl .badge svg {
    margin-right: 0;
    margin-left: 8px;
}

body.rtl .checkbox-wrapper {
    flex-direction: row-reverse;
}

body.rtl .checkbox-wrapper input[type="checkbox"] {
    margin-right: 0;
    margin-left: 12px;
}

body.rtl .steps-container .step {
    flex-direction: row-reverse;
}

body.rtl .steps-container .step-icon {
    margin-right: 0;
    margin-left: 12px;
}

body.rtl .register-link,
body.rtl .login-link-top {
    text-align: left;
}

body.rtl .register-link a,
body.rtl .login-link-top a {
    margin-left: 0;
    margin-right: 4px;
}

body.rtl .forgot-password-link {
    text-align: left;
}

body.rtl .lang-dropdown-menu {
    right: auto;
    left: 0;
}

body.rtl .lang-option .lang-flag {
    margin-right: 0;
    margin-left: 8px;
}

body.rtl .error-message {
    text-align: right;
}

body.rtl .modal-close {
    right: auto;
    left: 16px;
}

body.rtl #forgotPasswordModal .modal-close {
    right: auto;
    left: 16px;
}

body.rtl .pin-inputs {
    flex-direction: row-reverse;
}

body.rtl .generate-btn {
    right: auto;
    left: 8px;
}

body.rtl select {
    background-position: left 12px center;
    padding-right: 16px;
    padding-left: 40px;
}

body.rtl .success-message {
    text-align: center;
}

body.rtl footer {
    text-align: center;
}