/* Simplified Registration Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2 0%, #f3f4f6 100%);
    padding: 1rem;
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-icon {
    color: #6b7280;
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    background: #f9fafb;
    color: #111827;
}

.form-input:focus {
    outline: none;
    border-color: #dc2626;
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-input::placeholder {
    color: #9ca3af;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease-in-out;
}

.password-toggle:hover {
    color: #374151;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    background: #ef4444;
    width: 25%;
}

.strength-fill.fair {
    background: #f59e0b;
    width: 50%;
}

.strength-fill.good {
    background: #3b82f6;
    width: 75%;
}

.strength-fill.strong {
    background: #10b981;
    width: 100%;
}

.strength-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

/* Profile Setup Section */
.profile-setup {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.setup-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.setup-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

/* Gender Options */
.gender-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.gender-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: white;
}

.gender-option:hover {
    border-color: #d1d5db;
}

.gender-option input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: #dc2626;
}

.gender-option:has(input[type="radio"]:checked) {
    border-color: #dc2626;
    background: #fef2f2;
}

.gender-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.gender-content i {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Fitness Levels */
.fitness-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.fitness-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: white;
    text-align: center;
}

.fitness-option:hover {
    border-color: #d1d5db;
}

.fitness-option input[type="radio"] {
    margin-bottom: 0.75rem;
    accent-color: #dc2626;
}

.fitness-option:has(input[type="radio"]:checked) {
    border-color: #dc2626;
    background: #fef2f2;
}

.fitness-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.fitness-content i {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.fitness-content strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.fitness-content span {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.goal-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: white;
}

.goal-option:hover {
    border-color: #d1d5db;
}

.goal-option input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: #dc2626;
}

.goal-option:has(input[type="radio"]:checked) {
    border-color: #dc2626;
    background: #fef2f2;
}

.goal-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.goal-content i {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-checkbox {
    margin-top: 0.25rem;
    accent-color: #dc2626;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    line-height: 1.5;
}

.form-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: 0.5rem;
    border-left: 3px solid #ef4444;
    font-weight: 500;
}

.form-error i {
    font-size: 0.875rem;
}

/* Auth Button */
.auth-button {
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Social Login */
.social-login {
    margin-bottom: 1.5rem;
}

.social-button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-button:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.google-button {
    color: #4285f4;
}

.google-button:hover {
    border-color: #4285f4;
    background: #f8faff;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.auth-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.auth-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* RTL Support */
[dir="rtl"] .auth-logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-label {
    flex-direction: row-reverse;
}

[dir="rtl"] .password-toggle {
    right: auto;
    left: 0.75rem;
}

[dir="rtl"] .gender-option input[type="radio"] {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .goal-option input[type="radio"] {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .form-error {
    border-left: none;
    border-right: 3px solid #ef4444;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .gender-options {
        grid-template-columns: 1fr;
    }
    
    .fitness-levels {
        grid-template-columns: 1fr;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
}

/* Accessibility */
.form-input:focus-visible,
.auth-button:focus-visible,
.social-button:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 3px;
    }
    
    .auth-button,
    .social-button {
        border: 2px solid #000;
    }
}