/* ================================
   PersonalBot - Auth Pages
   ================================ */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

.auth-left {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(247, 147, 30, 0.15) 0%, transparent 50%);
}

.auth-branding {
    position: relative;
    z-index: 1;
    max-width: 450px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--space-2xl);
}

.auth-logo .logo-icon {
    font-size: 2rem;
}

.auth-branding h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.auth-branding p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-light);
}

.auth-feature span {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    background: var(--bg-dark);
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    margin-bottom: var(--space-xl);
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--text-muted);
}

.auth-header a {
    color: var(--primary-light);
    font-weight: 500;
}

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

.auth-form {
    margin-bottom: var(--space-xl);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkbox-label a {
    color: var(--primary-light);
}

.forgot-link {
    color: var(--primary-light);
    font-size: 0.9rem;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.btn-social {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 100%;
}

.btn-social:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

/* Checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.checkout-left {
    background: var(--bg-darker);
    padding: var(--space-3xl);
}

.checkout-right {
    background: var(--bg-dark);
    padding: var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
    transition: color var(--transition);
}

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

.checkout-summary h2 {
    margin-bottom: var(--space-xl);
}

.plan-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.plan-header h3 {
    font-size: 1.5rem;
}

.plan-desc {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.plan-features {
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.plan-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

.price-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    color: var(--text-muted);
}

.price-row.total {
    padding-top: var(--space-md);
    margin-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.checkout-form-container {
    max-width: 450px;
    width: 100%;
}

.checkout-form-container h2 {
    margin-bottom: var(--space-sm);
}

.checkout-form-container > p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.payment-methods {
    margin-bottom: var(--space-xl);
}

.payment-methods h4 {
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.payment-option {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.payment-option.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.payment-option input {
    display: none;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    width: 100%;
}

.payment-icon {
    font-size: 1.5rem;
}

.card-form {
    margin-bottom: var(--space-xl);
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-lg);
}

.secure-badge svg {
    color: var(--success);
}

.terms-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--space-md);
}

.terms-note a {
    color: var(--primary-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container,
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left,
    .checkout-left {
        display: none;
    }
    
    .auth-right,
    .checkout-right {
        padding: var(--space-xl);
    }
}

/* ================================
   Mercado Pago - Checkout embebido
   ================================ */

.mp-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.mp-status {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: var(--space-md);
}

.mp-status.loading {
    color: var(--primary-light);
}

.mp-payment-container {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-height: 140px;
    margin-bottom: var(--space-lg);
}

/* ================================
   Página de Retorno (resultado)
   ================================ */

.retorno-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retorno-card {
    max-width: 480px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.retorno-card.approved {
    border-color: rgba(46, 204, 113, 0.4);
}

.retorno-card.failed {
    border-color: rgba(231, 76, 60, 0.4);
}

.retorno-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-lg);
}

.retorno-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.retorno-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.retorno-hint {
    font-size: 0.9rem;
}

.retorno-card .btn {
    margin-bottom: var(--space-sm);
}
