/* =============================================
   CAPACITACIONES TYM & TAT — PREMIUM LOGIN
   ============================================= */
@import url('./variables.css');

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

html {
    font-size: 62.5%;
    height: 100%;
}

body {
    font-family: var(--main-font);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #1a5276, #0f172a);
    background-attachment: fixed;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

/* Decoración de fondo dinámica */
body::before {
    content: '';
    position: fixed;
    top: -10%; left: -10%;
    width: 40%; height: 40%;
    background: radial-gradient(circle, rgba(230,126,34,0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

/* ── Formulario contenedor ── */
.login-form {
    position: relative;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 60rem; /* Un poco más ancho para dar aire */
    animation: entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes entrance {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-form.active {
    display: flex !important;
}

/* Logo Hero Area */
figure {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.logo-tym {
    width: clamp(12rem, 20vw, 16rem);
    height: clamp(12rem, 20vw, 16rem);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}

.logo-tat {
    width: clamp(18rem, 30vw, 24rem);
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: transform 0.4s ease;
}

.card:hover .logo-tat, .card:hover .logo-tym {
    transform: scale(1.05);
}

/* ── Fieldset Glassmorphism ── */
.login-fieldset {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3.2rem;
    padding: clamp(2rem, 5vw, 5rem);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 
        0 25px 50px -12px rgba(0,0,0,0.6),
        inset 0 1px 1px rgba(255,255,255,0.1);
}

.login-legend {
    width: 100%;
    text-align: center;
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.login-legend::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary2-600);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ── Inputs Layout ── */
.login-label {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.login-input, .login-select {
    width: 100%;
    padding: 1.6rem 2rem;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 1.6rem;
    color: #fff;
    font-size: 1.6rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.login-input::placeholder {
    color: rgba(255,255,255,0.2);
}

.login-input:focus, .login-select:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary2-600);
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.15);
}

.login-select option {
    background: #0f172a;
    color: #fff;
}

/* ── Botón Action ── */
footer {
    margin-top: 4rem;
}

.login-button {
    width: 100%;
    padding: 1.8rem;
    background: var(--primary2-600);
    color: #fff;
    border: none;
    border-radius: 1.8rem;
    font-size: 1.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(211, 84, 0, 0.4);
}

.login-button:hover {
    background: var(--primary2-500);
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -5px rgba(211, 84, 0, 0.5);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    background: #4b5563;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsividad extra */
@media (max-width: 480px) {
    body {
        padding: 1.5rem;
    }
    .login-fieldset {
        padding: 3rem 2rem;
    }
}