/* --- CONTENEDOR DE AUTENTICACIÓN --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    padding: 20px;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
}

.auth-box {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 440px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark .auth-box {
    background-color: rgba(30, 41, 59, 0.95);
}

/* --- CABECERA DEL FORMULARIO --- */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    height: 48px;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.auth-header p {
    color: var(--light-text);
    font-size: 0.92rem;
}

/* --- GRUPOS DE FORMULARIO Y CAMPOS --- */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark-text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background-color: var(--bg-light);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

body.dark .form-group input,
body.dark .form-group select {
    background-color: #0f172a;
    border-color: #334155;
}

body.dark .form-group input:focus,
body.dark .form-group select:focus {
    background-color: #1e293b;
}

/* --- BOTÓN DE ACCIÓN --- */
.btn-auth {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-auth:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-auth:active {
    transform: scale(0.97);
}

/* --- PIE DEL FORMULARIO --- */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .auth-box {
        padding: 28px 22px;
    }
    .auth-container .floating-cv {
        display: none;
    }
}

/* --- CV FLOATING BACKGROUNDS --- */
.auth-container .floating-cv {
    position: absolute;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}
.auth-container .floating-cv img { width: 100%; height: 100%; object-fit: contain; }
.auth-cv-1 { width: 160px; top: 8%; left: 4%; transform: rotate(-15deg); animation: floatAuthCv 9s ease-in-out infinite; }
.auth-cv-2 { width: 140px; top: 55%; right: 3%; transform: rotate(10deg); animation: floatAuthCv 11s ease-in-out infinite 1s; }
.auth-cv-3 { width: 120px; bottom: 8%; left: 8%; transform: rotate(7deg); animation: floatAuthCv 10s ease-in-out infinite 2s; }
.auth-cv-4 { width: 130px; top: 15%; right: 8%; transform: rotate(-8deg); animation: floatAuthCv 8s ease-in-out infinite 0.5s; }
@keyframes floatAuthCv {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.auth-cv-1 { --rot: -15deg; }
.auth-cv-2 { --rot: 10deg; }
.auth-cv-3 { --rot: 7deg; }
.auth-cv-4 { --rot: -8deg; }
