/**
 * Yurivisión CMS — Login
 */

:root {
    --yv-primary: #0755A5;
    --yv-primary-dark: #063B73;
    --yv-accent-yellow: #FFD200;
    --yv-accent-red: #E11D2E;
    --bg-color: hsl(222, 47%, 9%);
    --card-bg: hsla(223, 47%, 14%, 0.92);
    --border-color: hsla(217, 30%, 50%, 0.22);
    --text-color: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 20%, 72%);
}

*, *::before, *::after { box-sizing: border-box; }

body.auth-body {
    font-family: 'Outfit', system-ui, sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(7, 85, 50%, 0.15) 0px, transparent 45%),
        radial-gradient(at 100% 100%, hsla(263, 70%, 50%, 0.12) 0px, transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: stretch;
}

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

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { display: none; }
}

.auth-brand-panel {
    background: linear-gradient(160deg, var(--yv-primary-dark) 0%, hsl(263, 70%, 35%) 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 210, 0, 0.15), transparent 50%);
}

.auth-brand-content { position: relative; z-index: 1; max-width: 420px; }

.auth-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--yv-accent-yellow);
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.15);
}

.auth-brand-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.auth-brand-tagline {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 32px;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-card-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    background: hsla(223, 47%, 10%, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    padding: 12px 14px;
}

.form-control:focus {
    background: hsla(223, 47%, 12%, 0.95);
    border-color: var(--yv-primary);
    box-shadow: 0 0 0 3px rgba(7, 85, 165, 0.2);
    color: var(--text-color);
}

.input-group-auth {
    position: relative;
}

.input-group-auth .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-group-auth .form-control {
    padding-left: 42px;
}

.btn-auth-primary {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--yv-primary), hsl(263, 70%, 45%));
    box-shadow: 0 4px 16px rgba(7, 85, 165, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.btn-auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(7, 85, 165, 0.45);
    color: #fff;
}

.alert-yv-danger {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(185, 28, 28, 0.12);
    border: 1px solid rgba(185, 28, 28, 0.3);
    color: #f87171;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.35s ease; }
