/* =============================================
   Asesor IAs - Estilos de Autenticación
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container */
.auth-container {
    display: flex;
    gap: 0;
    max-width: 900px;
    width: 100%;
    min-height: 600px;
}

.auth-container.auth-centered {
    justify-content: center;
}

.auth-container.auth-wide {
    max-width: 700px;
}

/* Card */
.auth-card {
    background: #1e293b;
    border-radius: 20px 0 0 20px;
    padding: 40px;
    flex: 1;
    border: 1px solid #334155;
    border-right: none;
}

.auth-centered .auth-card {
    border-radius: 20px;
    border: 1px solid #334155;
    max-width: 450px;
}

.auth-wide .auth-card {
    border-radius: 20px;
    border: 1px solid #334155;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.auth-header p {
    color: #94a3b8;
    font-size: 14px;
}

.auth-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
}

/* Form */
.auth-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: #64748b;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-hint {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Verification code input */
.code-input {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 12px;
    padding: 20px;
}

.verify-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-large {
    padding: 18px 32px;
    font-size: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
}

.btn-link:hover {
    color: #818cf8;
    text-decoration: underline;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

.auth-footer p {
    color: #94a3b8;
    font-size: 14px;
}

.auth-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: #818cf8;
    text-decoration: underline;
}

/* Decoration Panel */
.auth-decoration {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 0 20px 20px 0;
    padding: 40px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decoration-content {
    text-align: center;
    color: white;
}

.decoration-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.decoration-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.decoration-content p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.benefits-list {
    list-style: none;
    text-align: left;
    margin-top: 15px;
}

.benefits-list li {
    padding: 8px 0;
    font-size: 14px;
    opacity: 0.95;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert p {
    margin: 0;
}

.alert p+p {
    margin-top: 5px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* Onboarding specifics */
.onboarding-card {
    max-width: 100%;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a78bfa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Concern options */
.concern-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.concern-option {
    cursor: pointer;
}

.concern-option input {
    display: none;
}

.concern-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.concern-card:hover {
    border-color: #475569;
}

.concern-option input:checked+.concern-card {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.concern-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.concern-text {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
}

.skip-link {
    text-align: center;
    margin-top: 15px;
}

.skip-link a {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
}

.skip-link a:hover {
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column-reverse;
    }

    .auth-card {
        border-radius: 0 0 20px 20px;
        border: 1px solid #334155;
        border-top: none;
    }

    .auth-decoration {
        border-radius: 20px 20px 0 0;
        width: 100%;
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .concern-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .concern-options {
        grid-template-columns: 1fr;
    }
}