/* ═══════════════════════════════════════════
   AUTH SCREEN — LOGIN Y REGISTRO
═══════════════════════════════════════════ */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--color-bg);
}

.auth-left {
    flex: 0 0 45%;
    background: linear-gradient(145deg, #2C3E50 0%, #1a2735 50%, #0e1820 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 114, 42, 0.25) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(41, 169, 225, 0.15) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.auth-brand-icon {
    width: 42px;
    height: 42px;
    background: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.auth-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.auth-tagline {
    position: relative;
    z-index: 1;
}

.auth-tagline h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.auth-tagline h1 span {
    color: var(--color-primary);
}

.auth-tagline p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-feature span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--color-bg-card);
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.4s ease;
}

.auth-form-container h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-form-container p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.auth-tab-group {
    display: flex;
    background: var(--color-bg);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    text-align: center;
}

.auth-tab.active {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-alpha);
}

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

.form-input-icon {
    position: relative;
}

.form-input-icon input {
    padding-left: 2.75rem;
}

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

.form-input-icon .icon-right {
    right: 0.875rem;
    left: auto;
    cursor: pointer;
    pointer-events: all;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235D7A94' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select:focus {
    border-color: var(--color-primary);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 0.375rem;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--color-danger);
    margin-top: 0.375rem;
}

.btn-auth {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #d4641e 100%);
    color: white;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(232, 114, 42, 0.4);
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232, 114, 42, 0.5);
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

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

.social-btn {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-primary);
    background: var(--color-bg-card);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 0.75rem;
}

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

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.auth-switch a {
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}

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

/* ═══════════════════════════════════════════
   RESPONSIVENESS — AUTH
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .auth-left {
        flex: 0 0 40%;
        padding: 2.5rem;
    }
}

@media (max-width: 850px) {
    .auth-screen {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-left {
        flex: 0 0 auto;
        padding: 3rem 1.5rem 4rem;
        min-height: auto;
    }

    .auth-features {
        display: none;
        /* Ocultar features en mobile para ahorrar espacio */
    }

    .auth-tagline h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .auth-right {
        flex: 1;
        padding: 2.5rem 1.5rem;
        margin-top: -30px;
        /* Overlap ligero con el gradiente */
        border-radius: 30px 30px 0 0;
        z-index: 2;
    }

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

@media (max-width: 480px) {
    .auth-left {
        padding: 2rem 1.25rem 3rem;
    }

    .auth-tagline h1 {
        font-size: 1.75rem;
    }

    .auth-right {
        padding: 2rem 1.25rem;
        margin-top: -20px;
    }

    .auth-tab-group {
        margin-bottom: 1.5rem;
    }

    .auth-brand-name {
        font-size: 1.25rem;
    }
}