/**
 * AI Smart Content - Suscribirse Page
 * Estilos para la página de suscripción con diseño moderno
 */

@import url('base.css');

/* ============================================
   CONTAINER
   ============================================ */
.subscribe-container {
    min-height: 100vh;
    background: #0a0a0a;
    color: var(--text-primary);
    padding: 0;
    margin: 0;
    display: flex;
}

/* ============================================
   MAIN CARD
   ============================================ */
.subscribe-card {
    background: #1a1a1a;
    border-radius: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
    box-shadow: none;
    border: none;
}

/* ============================================
   FORM SECTION (LEFT)
   ============================================ */
.subscribe-form-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.form-header {
    text-align: left;
}

.form-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.title-dot {
    color: var(--primary-color);
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ============================================
   PLAN SELECTION CARDS
   ============================================ */
.plans-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.plan-card-small {
    background: #252525;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
}

.plan-card-small:hover {
    border-color: rgba(210, 254, 63, 0.3);
}

.plan-card-small.selected {
    border-color: var(--primary-color);
    background: rgba(210, 254, 63, 0.05);
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.plan-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.plan-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.plan-card-price span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.plan-card-credits {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
}

/* ============================================
   REGISTRATION FORM
   ============================================ */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #2f2f2f;
    box-shadow: 0 0 0 3px rgba(210, 254, 63, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.password-toggle {
    cursor: pointer;
    pointer-events: all;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* ============================================
   FORM ACTIONS
   ============================================ */
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-change-method {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-change-method:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.btn-create-account {
    flex: 2;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-create-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(210, 254, 63, 0.3);
}

.btn-create-account:active {
    transform: translateY(0);
}

.btn-create-account:disabled {
    opacity: 0.5;
    cursor: not-allowed;
        transform: none;
    }
    
/* ============================================
   IMAGE SECTION (RIGHT)
   ============================================ */
.subscribe-image-section {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    background-image: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><path d="M0,400 Q300,200 600,400 T1200,400 L1200,800 L0,800 Z" fill="%23333" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(210, 254, 63, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(210, 254, 63, 0.1) 0%, transparent 50%);
}

.image-logo {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(210, 254, 63, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(210, 254, 63, 0.3);
}

.image-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
}

/* Decorative line */
.subscribe-image-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 80%;
    background: linear-gradient(to bottom, transparent, rgba(210, 254, 63, 0.3), transparent);
    border-left: 1px dashed rgba(210, 254, 63, 0.2);
    }
    
/* ============================================
   EMAIL CONFIRMATION SCREEN
   ============================================ */
.email-confirmation-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    background-image: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><path d="M0,400 Q300,200 600,400 T1200,400 L1200,800 L0,800 Z" fill="%23333" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.email-confirmation-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(210, 254, 63, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(210, 254, 63, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.confirmation-content {
    position: relative;
    z-index: 1;
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.confirmation-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.confirmation-message {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.confirmation-message strong {
    color: var(--text-primary);
    font-weight: 600;
}

.confirmation-instructions {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirmation-actions {
    display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
.btn-resend-email {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-resend-email:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(210, 254, 63, 0.3);
}

.btn-resend-email:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-back-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-back-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(210, 254, 63, 0.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .subscribe-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .subscribe-image-section {
        display: none;
    }

    .subscribe-form-section {
        padding: 1.5rem;
        min-height: 100vh;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .subscribe-container {
        padding: 0;
    }

    .form-title {
        font-size: 2rem;
    }
    
    .plans-selection {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-change-method,
    .btn-create-account {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .subscribe-form-section {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.75rem;
    }

    .confirmation-content {
        padding: 2rem 1.5rem;
    }

    .confirmation-icon {
        font-size: 3rem;
    }

    .confirmation-title {
        font-size: 1.5rem;
    }
}
