/* ============================================
   GOURMETHUB - ESTILOS DE AUTENTICACIÓN
   Login, Register, Recovery
   ============================================ */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f0f0f 100%);
}

.auth-card {
    max-width: 560px;
    width: 100%;
    background: var(--bg-card);
    border-radius: 32px;
    padding: 48px 40px;
    border: 1px solid rgba(230, 126, 34, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Login tiene card más compacta */
.auth-card.login-card {
    max-width: 480px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.auth-logo img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.auth-logo img:hover {
    filter: drop-shadow(0 0 12px rgba(230, 126, 34, 0.5));
    transform: scale(1.02);
}

/* Login logo más grande */
.auth-card.login-card .auth-logo img {
    height: 80px;
    margin-bottom: 8px;
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-card > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Plan Selector (registro) */
.plan-selector {
    background: rgba(230, 126, 34, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 32px;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.plan-selector-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--primary);
}

.plan-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.plan-option {
    flex: 1;
    background: var(--bg-dark);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.plan-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(230, 126, 34, 0.05));
}

.plan-option:hover:not(.selected) {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.plan-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.plan-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.plan-info-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(230, 126, 34, 0.3);
    border-radius: 40px;
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.plan-info-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(230, 126, 34, 0.05);
}

.plan-info-btn i {
    font-size: 0.8rem;
}

/* Cycle options (registro) */
.cycle-options {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.cycle-option {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid rgba(230, 126, 34, 0.3);
    border-radius: 40px;
    padding: 8px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.cycle-option.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.cycle-option .save-badge {
    background: var(--secondary);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-dark);
    border: 1px solid rgba(230, 126, 34, 0.3);
    border-radius: 16px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Password toggle */
.relative {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-toggle .hidden {
    display: none;
}

/* Form row (2 columnas) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Checkbox y opciones (login) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
}

.remember-me input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Mensajes */
.error-message {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid #ff4444;
    border-radius: 12px;
    padding: 12px 16px;
    color: #ff8888;
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--secondary);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--secondary);
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-align: center;
}

.hidden {
    display: none;
}

/* Footer del auth */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(230, 126, 34, 0.2);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Botón bloque */
.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-primary {
    padding: 14px;
    font-size: 1rem;
}

/* Popup de características */
.plan-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.plan-popup.active {
    display: flex;
}

.plan-popup-content-wrapper {
    max-width: 560px;
    width: 90%;
    background: var(--bg-card);
    border-radius: 32px;
    border: 1px solid var(--primary);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.plan-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(230, 126, 34, 0.2);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), transparent);
}

.plan-popup-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
    line-height: 1;
}

.popup-close:hover {
    color: var(--primary);
}

.plan-popup-content {
    display: none;
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.plan-popup-content.active {
    display: block;
}

.plan-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plan-popup-features {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.plan-popup-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-popup-features li i {
    color: var(--secondary);
    font-size: 1rem;
    width: 20px;
}

.plan-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(230, 126, 34, 0.2);
    margin-top: 8px;
}

.plan-popup-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 640px) {
    .auth-card {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .plan-options {
        flex-direction: column;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .plan-popup-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .plan-popup-footer .btn-primary {
        width: 100%;
    }
}