/* Auth Pages Styles */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 4rem;
}

.auth-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--primary-purple);
}

.logo-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Plan Badge */
.plan-badge {
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: var(--mystical-gradient);
    border-radius: 50px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.plan-badge.hidden {
    display: none;
}

/* Form Styles */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(15, 10, 31, 0.5);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

.forgot-link {
    display: block;
    margin-top: 0.5rem;
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: right;
    transition: opacity 0.3s ease;
}

.forgot-link:hover {
    opacity: 0.8;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.form-checkbox label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-checkbox label a {
    color: var(--primary-purple);
    text-decoration: none;
}

.form-checkbox label a:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.error-message.hidden {
    display: none;
}

/* Auth Button */
.auth-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--mystical-gradient);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-button.loading {
    position: relative;
    color: transparent;
}

.auth-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(139, 92, 246, 0.2);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(139, 92, 246, 0.05);
    padding: 0 1rem;
}

/* Social Auth */
.social-auth {
    display: flex;
    gap: 1rem;
}

.social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(15, 10, 31, 0.5);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-button:hover {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
}

.social-button svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Features (Right Side) */
.auth-features {
    max-width: 400px;
    display: none;
}

.auth-features h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    background: var(--mystical-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item-auth {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item-auth:hover {
    transform: translateX(5px);
    border-color: var(--primary-purple);
}

.feature-icon-auth {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item-auth strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.feature-item-auth p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive */
@media (min-width: 1024px) {
    .auth-features {
        display: block;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }

    .logo-auth {
        font-size: 1.5rem;
    }
}

/* Success Message */
.success-message {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    color: #86efac;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.success-message.hidden {
    display: none;
}
