/* Sprint B0: Email Gate CSS */

/* Email Gate Card */
#email-gate-card {
    max-width: 500px;
    margin: 0 auto;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.email-form label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: -0.5rem;
}

.email-form input[type="email"] {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.email-form input[type="email"]:invalid {
    border-color: #e74c3c;
}

.helper-text {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin: -0.5rem 0 0 0;
}

.btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    padding: 0.75rem 1rem;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 6px;
    color: #c53030;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Info Box */
.info-box {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1.25rem;
    border-radius: 6px;
    margin-top: 2rem;
}

.info-box p {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: #2c3e50;
}

.info-box ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: none;
}

.info-box li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Privacy Note */
.privacy-note {
    text-align: center;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 1rem 0 0 0;
}

/* Loading state */
.email-form.loading input,
.email-form.loading button {
    opacity: 0.6;
    pointer-events: none;
}

.btn-primary.loading:after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Success state */
.email-form.success input {
    border-color: #27ae60;
    background: #f0fdf4;
}

.success-message {
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    color: #166534;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card transitions */
.card {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.card.active {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 600px) {
    #email-gate-card {
        margin: 1rem;
    }

    .email-form input[type="email"],
    .btn-primary {
        font-size: 16px; /* Evita zoom en iOS */
    }

    .info-box {
        padding: 1rem;
    }
}
