/* ============================================================
   LOGIN EMPRESAS — CONAEMPLEO LIQUID GLASS REDESIGN
   Usa variables de conaempleo-themes.css
   ============================================================ */

/* ── FONDO OSCURO CON ORBES ── */
body {
    font-family: 'Inter', 'Poppins', system-ui, sans-serif;
    margin: 0;
    background: var(--gradient-page);
    background-size: 400% 400%;
    animation: liquidBg 20s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

@keyframes liquidBg {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

/* Orbes */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}
body::before {
    width: 380px; height: 380px;
    top: -80px; right: -80px;
    background: var(--brand-green-glow);
    animation: orb1 14s ease-in-out infinite;
}
body::after {
    width: 320px; height: 320px;
    bottom: -60px; left: -60px;
    background: var(--brand-orange-glow);
    animation: orb2 17s ease-in-out infinite;
}

/* ── CONTENEDOR GLASS ── */
.form-container {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-strong);
    width: 100%;
    max-width: 420px;
    text-align: left;
    animation: cardEntry 0.7s var(--ease-spring);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--duration-med) var(--ease-spring);
}

/* Shimmer */
.form-container::before {
    content: "";
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--gradient-shimmer);
    animation: glassShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

/* Border glow top */
.form-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-orange), var(--brand-green));
    background-size: 200% 100%;
    animation: liquidBg 4s linear infinite;
}

.form-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
    border-color: var(--glass-border-hover);
}

/* ── LOGOS ── */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.login-logo {
    display: block;
    max-height: 55px;
    width: auto;
    object-fit: contain;
    animation: liquidFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px var(--brand-green-glow));
    transition: all 0.4s var(--ease-spring);
    position: relative;
    z-index: 1;
}

.login-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 20px var(--brand-green-glow));
}

.login-logo.conaempleo {
    max-height: 50px;
}

/* ── TÍTULO ── */
h2 {
    color: var(--brand-green);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

/* ── FORMULARIO ── */
form {
    position: relative;
    z-index: 1;
}

input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    background: var(--bg-glass-subtle);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--duration-med) var(--ease-spring);
    outline: none;
    box-sizing: border-box;
}

input::placeholder {
    color: var(--text-tertiary);
}

input:focus {
    border-color: var(--brand-green);
    background: var(--bg-glass);
    animation: inputGlow 2s ease-in-out infinite;
    transform: translateY(-1px);
}

/* ── BOTÓN ── */
button[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--gradient-accent);
    transition: all var(--duration-med) var(--ease-spring);
    animation: harmonyPulse 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-shimmer);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px var(--brand-green-glow);
    animation: none;
}

button[type="submit"]:hover::before {
    opacity: 1;
    animation: glassShimmer 1.2s ease;
}

button[type="submit"]:active {
    transform: scale(0.97);
}

/* ── ENLACE REGISTRO ── */
.switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-tertiary);
    position: relative;
    z-index: 1;
}

.switch a {
    color: var(--brand-orange);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.switch a:hover {
    color: var(--brand-green);
    border-bottom-color: var(--brand-green);
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .form-container { padding: 28px 22px; border-radius: var(--radius-lg); }
    .login-logo { max-height: 42px; }
    .login-logo.conaempleo { max-height: 38px; }
    h2 { font-size: 1.1rem; }
    input { padding: 12px 14px; font-size: 0.9rem; }
    button[type="submit"] { padding: 13px; }
}