/* ===========================
   Authentication Pages
   =========================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 60s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease-out;
}

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

.register-card {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    margin-bottom: 16px;
}

.auth-logo i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.auth-logo h1 {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.auth-subtitle {
    color: var(--gray-600);
    font-size: 14px;
    margin: 0;
}

.auth-form {
    margin-bottom: 24px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.auth-form input {
    height: 48px;
    font-size: 14px;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    color: var(--gray-600);
    font-size: 14px;
    margin: 0;
}

.auth-footer a {
    font-weight: 600;
    color: var(--primary-color);
}

.lang-switcher-bottom {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.lang-switcher-bottom button {
    padding: 8px 16px;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}

.lang-switcher-bottom button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.lang-switcher-bottom button:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Register Specific */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.plan-card {
    position: relative;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
}

.plan-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.plan-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.plan-card input:checked + .plan-content {
    opacity: 1;
}

.plan-card input:checked ~ .plan-badge {
    opacity: 1;
}

.plan-card:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.plan-content {
    text-align: center;
    opacity: 0.7;
    transition: var(--transition);
}

.plan-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.plan-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.plan-content p {
    font-size: 12px;
    color: var(--gray-600);
    margin: 0;
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--warning-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}

.rtl .plan-badge {
    right: auto;
    left: 10px;
}

.plan-card.popular {
    border-color: var(--primary-color);
}

.plan-card.popular .plan-badge {
    opacity: 1;
}

.trial-note {
    text-align: center;
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 640px) {
    .auth-card {
        padding: 24px;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
    }
}
