/* Auth Pages - Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    min-height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 15s infinite ease-in-out reverse;
}

@media (max-width: 768px) {
    body::before, body::after {
        display: none;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Page Wrapper */
.page-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-wrapper.centered {
    justify-content: center;
}

.page-wrapper.confirmation-wrapper {
    max-width: 480px;
    display: block;
}

/* Brand Section */
.brand-section {
    flex: 1;
    color: white;
    max-width: 450px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.brand-icon i { font-size: 2rem; color: white; }
.brand-name { font-size: 2.75rem; font-weight: 700; letter-spacing: -1px; color: white; }
.brand-tagline { font-size: 1.5rem; font-weight: 300; opacity: 0.95; line-height: 1.5; margin-bottom: 40px; }

/* Features List */
.features-list { display: flex; flex-direction: column; gap: 16px; }

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(-8px);
}

[dir="ltr"] .feature-item:hover { transform: translateX(8px); }

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i { font-size: 1.1rem; color: white; }
.feature-text { font-size: 1rem; font-weight: 500; }

/* Form Section */
.form-section { width: 440px; flex-shrink: 0; }

.confirmation-wrapper .form-section { width: 100%; }

.form-card, .login-card, .register-card, .confirmation-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 36px 32px;
}

.confirmation-card {
    padding: 40px 32px;
    text-align: center;
}

/* Card Header */
.card-header { text-align: center; margin-bottom: 24px; }
.card-header h1 { font-size: 1.75rem; font-weight: 700; color: #1c1e21; margin-bottom: 8px; }
.card-header p { color: #65676b; font-size: 0.95rem; }

.header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.header-icon i { font-size: 2rem; color: white; }

.header-icon.success {
    background: linear-gradient(135deg, #42b883 0%, #35a070 100%);
    width: 100px;
    height: 100px;
    animation: pulse 2s infinite;
}

.header-icon.success i { font-size: 2.5rem; }

.header-icon.danger {
    background: linear-gradient(135deg, #ee5a5a 0%, #dc3545 100%);
    width: 100px;
    height: 100px;
    animation: pulse-danger 2s infinite;
}

.header-icon.danger i { font-size: 2.5rem; }

.header-icon.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    width: 100px;
    height: 100px;
    animation: pulse-warning 2s infinite;
}

.header-icon.warning i { font-size: 2.5rem; }

.header-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(66, 184, 131, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(66, 184, 131, 0); }
}

@keyframes pulse-danger {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(238, 90, 90, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(238, 90, 90, 0); }
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 193, 7, 0); }
}

/* Language Row */
.language-row { display: flex; justify-content: center; margin-bottom: 20px; }

/* Modern Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e4e6eb;
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.language-trigger:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.language-trigger:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.language-trigger .fa-globe {
    font-size: 16px;
    color: #667eea;
}

.language-trigger .current-lang {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-trigger .dropdown-arrow {
    font-size: 10px;
    color: #8a8d91;
    transition: transform 0.3s ease;
}

.language-dropdown.open + .language-trigger .dropdown-arrow,
.language-selector:has(.language-dropdown.open) .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    min-width: 200px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.language-dropdown form {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: start;
}

.language-option:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1c1e21;
}

.language-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.language-option.selected:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    color: white;
}

.language-option .lang-name {
    flex: 1;
}

.language-option .fa-check {
    font-size: 12px;
    opacity: 0.9;
}

/* RTL Support for Language Selector */
[dir="rtl"] .language-trigger {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-option {
    text-align: end;
    flex-direction: row-reverse;
}

/* Validation Errors */
.validation-errors {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: white;
    font-size: 14px;
}

.validation-errors ul { margin: 0; padding-right: 20px; list-style: disc; }
[dir="ltr"] .validation-errors ul { padding-right: 0; padding-left: 20px; }

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #dbeafe 100%);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #1e40af;
    font-size: 14px;
    border: 1px solid #93c5fd;
}

.info-box i { margin-left: 8px; }
[dir="ltr"] .info-box i { margin-left: 0; margin-right: 8px; }

/* Success Message */
.success-message {
    color: #65676b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 20px;
    background: #f0f9f4;
    border-radius: 12px;
    border: 1px solid #d4edda;
}

.success-message i { color: #42b883; margin-left: 8px; }
[dir="ltr"] .success-message i { margin-left: 0; margin-right: 8px; }

/* Error Message */
.error-message {
    color: #65676b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 20px;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.error-message i { color: #ee5a5a; margin-left: 8px; }
[dir="ltr"] .error-message i { margin-left: 0; margin-right: 8px; }

/* Warning Message */
.warning-message {
    color: #65676b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 20px;
    background: #fffbeb;
    border-radius: 12px;
    border: 1px solid #fde68a;
}

.warning-message i { color: #f59e0b; margin-left: 8px; }
[dir="ltr"] .warning-message i { margin-left: 0; margin-right: 8px; }

/* Redirect Info */
.redirect-info {
    color: #65676b;
    font-size: 0.95rem;
    margin-bottom: 24px;
    text-align: center;
}

.redirect-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.redirect-info a:hover { text-decoration: underline; }

/* Form Elements */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #e4e6eb;
    border-radius: 10px;
    background: #f7f8fa;
    color: #1c1e21;
    transition: all 0.2s ease;
}

.form-input:hover { border-color: #d8dadf; }

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.form-input.green:focus { border-color: #42b883; box-shadow: 0 0 0 4px rgba(66, 184, 131, 0.15); }

.form-input::placeholder { color: #8a8d91; }

.field-validation-error {
    display: block;
    color: #ee5a5a;
    font-size: 13px;
    margin-top: 6px;
}

/* Policy Options */
.policy-section { margin-bottom: 20px; }
.policy-title { font-size: 14px; font-weight: 600; color: #1c1e21; margin-bottom: 12px; }
.policy-options { display: flex; gap: 12px; }

.policy-option { flex: 1; position: relative; }

.policy-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.policy-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f7f8fa;
    border: 2px solid #e4e6eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #65676b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.policy-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.policy-option label:hover { border-color: #667eea; }

.input-group { display: none; }
.input-group.active { display: block; }

/* Remember Row */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remember-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
}

.remember-check label {
    font-size: 14px;
    color: #65676b;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover { text-decoration: underline; }

/* Buttons */
.btn-primary, .btn-login {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-primary::before, .btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before, .btn-login:hover::before { left: 100%; }
.btn-primary:hover, .btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); color: white; }
.btn-primary:active, .btn-login:active { transform: translateY(0); }
.btn-primary:disabled, .btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-success, .btn-register {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    background: linear-gradient(135deg, #42b883 0%, #35a070 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-success::before, .btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-success:hover::before, .btn-register:hover::before { left: 100%; }
.btn-success:hover, .btn-register:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(66, 184, 131, 0.4); color: white; }
.btn-success:active, .btn-register:active { transform: translateY(0); }
.btn-success:disabled, .btn-register:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Terms Agreement */
.terms-agreement {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #6c757d;
    text-align: center;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
}
.terms-agreement i {
    color: #4f46e5;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.terms-agreement a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}
.terms-agreement a:hover {
    text-decoration: underline;
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    background: #f0f2f5;
    color: #65676b;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover { background: #e4e6eb; color: #65676b; }

.btn-link {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-link:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); color: white; }

.btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    width: auto;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #8a8d91;
    font-size: 14px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e4e6eb;
}

/* External Buttons */
.external-section { margin-top: 24px; }
.external-buttons { display: flex; flex-direction: column; gap: 10px; }

.btn-external {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    background: white;
    color: #1c1e21;
    border: 2px solid #e4e6eb;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-external:hover { background: #f7f8fa; border-color: #667eea; }
.btn-external i { font-size: 20px; }
.btn-external .fa-google { color: #ea4335; }
.btn-external .fa-microsoft { color: #00a4ef; }
.btn-external .fa-facebook { color: #1877f2; }
.btn-external .fa-github { color: #333; }

/* Mobile Brand */
.mobile-brand {
    display: none;
    text-align: center;
    color: white;
    margin-bottom: 24px;
}

.mobile-brand .brand-logo { justify-content: center; }
.mobile-brand .brand-tagline { font-size: 1rem; margin-bottom: 0; }

/* No Login Message */
.no-login-message {
    text-align: center;
    padding: 20px;
    color: #65676b;
}

.no-login-message strong {
    display: block;
    color: #ee5a5a;
    margin-bottom: 8px;
}

/* Footer */
.footer-text {
    text-align: center;
    margin-top: 24px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .page-wrapper { flex-direction: column; gap: 24px; }
    .brand-section { display: none; }
    .mobile-brand { display: block; }
    .form-section { width: 100%; max-width: 440px; }
}

@media (max-width: 480px) {
    body { padding: 16px; }
    .form-card, .login-card, .register-card, .confirmation-card { padding: 28px 20px; border-radius: 12px; }
    .card-header h1 { font-size: 1.5rem; }
    .form-input { padding: 12px 14px; }
    .btn-primary, .btn-success, .btn-login, .btn-register { padding: 14px; font-size: 16px; }
    .mobile-brand .brand-name { font-size: 2rem; }
    .mobile-brand .brand-icon { width: 56px; height: 56px; }
    .policy-options { flex-direction: column; }
    .header-icon.success { width: 80px; height: 80px; }
    .header-icon.success i { font-size: 2rem; }
}

/* Modern Cookie Consent Banner */
.cc-window {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: ccSlideUp 0.4s ease-out;
}

@keyframes ccSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cc-window.cc-invisible {
    animation: ccSlideDown 0.3s ease-in forwards;
}

@keyframes ccSlideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

.cc-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
}

.cc-message {
    flex: 1;
    min-width: 300px;
    color: #1a1a2e !important;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    color: #4f46e5;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.2));
}

.cookie-text { flex: 1; }

.cookie-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.cookie-text p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cc-compliance {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cc-btn.cc-dismiss,
.cc-btn.cc-allow {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.cc-btn.cc-dismiss:hover,
.cc-btn.cc-allow:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.cc-btn.cc-deny {
    background: transparent;
    color: #64748b !important;
    border: 1px solid #e2e8f0;
}

.cc-btn.cc-deny:hover {
    background: #f8fafc;
    color: #1a1a2e !important;
    border-color: #cbd5e1;
}

.cc-link {
    color: #4f46e5 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cc-link:hover {
    color: #4338ca !important;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cc-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1rem;
    }
    .cc-message { min-width: auto; }
    .cookie-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cookie-icon { width: 32px; height: 32px; min-width: 32px; }
    .cc-compliance { width: 100%; flex-direction: column; }
    .cc-btn { width: 100%; }
}

[dir="rtl"] .cookie-content { flex-direction: row-reverse; }
[dir="rtl"] .cc-banner { flex-direction: row-reverse; }

@media (max-width: 768px) {
    [dir="rtl"] .cc-banner { flex-direction: column; }
    [dir="rtl"] .cookie-content { flex-direction: column; }
}

/* Client Redirect Card */
.client-redirect-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.client-redirect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.redirect-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.redirect-icon i {
    font-size: 1.5rem;
    color: white;
}

.redirect-icon img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 2px;
}

.redirect-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.redirect-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.redirect-app-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

a.redirect-app-name {
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s ease;
}

a.redirect-app-name:hover {
    color: #764ba2;
}

a.redirect-app-name i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

a.redirect-app-name:hover i {
    transform: translate(2px, -2px);
}

[dir="rtl"] .client-redirect-card {
    flex-direction: row-reverse;
}

[dir="rtl"] .redirect-content {
    text-align: right;
}

[dir="rtl"] a.redirect-app-name {
    flex-direction: row-reverse;
}

@media (max-width: 480px) {
    .client-redirect-card {
        padding: 14px 16px;
        gap: 12px;
    }
    .redirect-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    .redirect-icon i {
        font-size: 1.25rem;
    }
    .redirect-app-name {
        font-size: 1rem;
    }
}

/* Auto Redirect Timer */
.auto-redirect-timer {
    margin-top: 24px;
    text-align: center;
}

.timer-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.timer-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 1s linear;
}

.timer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.timer-text i {
    color: #667eea;
    font-size: 1.1rem;
}

.timer-text strong {
    color: #667eea;
    font-size: 1.1rem;
    min-width: 20px;
    display: inline-block;
}

[dir="rtl"] .timer-text {
    flex-direction: row-reverse;
}

/* Registration Progress Indicator */
.registration-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: #e4e6eb;
    color: #65676b;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 11px;
    color: #65676b;
    white-space: nowrap;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.progress-step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, #42b883 0%, #35a070 100%);
    color: white;
}

.progress-step.completed .step-label {
    color: #42b883;
}

.progress-line {
    width: 40px;
    height: 3px;
    background: #e4e6eb;
    border-radius: 2px;
    margin-bottom: 20px;
}

.progress-line.completed {
    background: linear-gradient(90deg, #42b883 0%, #35a070 100%);
}

/* Form Hint */
.form-hint {
    display: block;
    font-size: 12px;
    color: #8a8d91;
    margin-top: 6px;
}

/* Verification Info */
.verification-info {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.verification-info p {
    color: #1c1e21;
    font-size: 15px;
    margin-bottom: 12px;
}

.contact-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #65676b;
}

.contact-item i {
    color: #667eea;
}

/* Code Input */
.code-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
}

/* Code Timer */
.code-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin-bottom: 20px;
    background: #f0f2f5;
    border-radius: 8px;
    color: #65676b;
    font-size: 14px;
}

.code-timer i {
    color: #667eea;
}

.code-timer strong {
    color: #667eea;
    font-size: 16px;
}

.code-timer.expired {
    background: #fef2f2;
    color: #ee5a5a;
}

.code-timer.expired i,
.code-timer.expired strong {
    color: #ee5a5a;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e4e6eb;
}

.resend-section p {
    color: #65676b;
    font-size: 14px;
    margin-bottom: 8px;
}

.resend-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-text {
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.btn-text:hover {
    color: #764ba2;
    text-decoration: underline;
}

.separator {
    color: #d8dadf;
}

/* Back Link */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    color: #65676b;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #667eea;
}

/* Verification Success */
.verification-success {
    text-align: center;
    padding: 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(66, 184, 131, 0.1) 0%, rgba(53, 160, 112, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(66, 184, 131, 0.2);
}

.verification-success i {
    font-size: 32px;
    color: #42b883;
    margin-bottom: 8px;
}

.verification-success p {
    color: #35a070;
    font-weight: 600;
    margin: 0;
}

/* Account Info */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

.account-info.profile-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(66, 184, 131, 0.1) 0%, rgba(53, 160, 112, 0.1) 100%);
    border-radius: 12px;
}

.welcome-message i {
    font-size: 48px;
    color: #42b883;
    margin-bottom: 12px;
}

.welcome-message h3 {
    color: #1c1e21;
    font-size: 20px;
    margin-bottom: 8px;
}

.welcome-message p {
    color: #65676b;
    font-size: 14px;
    margin: 0;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Required Indicator */
.required {
    color: #ee5a5a;
}

/* Gender Options */
.gender-options {
    display: flex;
    gap: 12px;
}

.gender-option {
    flex: 1;
    cursor: pointer;
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: #f7f8fa;
    border: 2px solid #e4e6eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #65676b;
    transition: all 0.2s ease;
}

.gender-label i {
    font-size: 20px;
}

.gender-option input[type="radio"]:checked + .gender-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.gender-option:hover .gender-label {
    border-color: #667eea;
}

/* Skip Form */
.skip-form {
    text-align: center;
    margin-top: 16px;
}

.skip-btn {
    color: #8a8d91;
}

.skip-btn:hover {
    color: #667eea;
}

/* RTL Support for Registration */
[dir="rtl"] .registration-progress {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .back-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .gender-label {
    flex-direction: row-reverse;
}

[dir="rtl"] .resend-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .code-timer {
    flex-direction: row-reverse;
}
