/* ============================================================
   ZINAPTIK - PORTAL DE COLABORADORES
   OCTÁGONO REGULAR 3D EN CRISTAL ESMERILADO AZUL CIELO
   Elegancia Translúcida, Entradas Flotantes & Máxima Amplitud
   ============================================================ */

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: #03050a;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    z-index: 1;
}

/* Logo superior flotante centrado de la marca ZINAPTIK */
.sky-top-logo {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.sky-top-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.5));
}

.sky-top-logo:hover {
    transform: translateX(-50%) scale(1.04);
}

/* Capa de atenuación cinematográfica suave que deja apreciar el video */
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(12, 16, 28, 0.35) 0%, rgba(3, 5, 12, 0.75) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Contenedor Cuadrado de Gran Amplitud (640px) */
.sky-octa-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 50px rgba(56, 189, 248, 0.3));
}

/* La Tarjeta Octagonal Regular */
.sky-octa-card {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 640px;
    max-height: 640px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Capa Vectorial SVG con Trazo Azul Cielo Suave & Bisel Sutil */
.sky-octa-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Capa de Cristal Esmerilado Lechoso Ultra Suave (Frosted Acrylic) */
.sky-octa-glass {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(240, 249, 255, 0.08) 45%, rgba(14, 165, 233, 0.08) 100%);
    clip-path: polygon(
        29.3% 0%, 
        70.7% 0%, 
        100% 29.3%, 
        100% 70.7%, 
        70.7% 100%, 
        29.3% 100%, 
        0% 70.7%, 
        0% 29.3%
    );
    pointer-events: none;
}

/* Reflejo Especular Suave de Cristal Pulido */
.sky-octa-sheen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.04) 40%, transparent 65%);
    clip-path: polygon(
        29.3% 0%, 
        70.7% 0%, 
        100% 29.3%, 
        100% 70.7%, 
        70.7% 100%, 
        29.3% 100%, 
        0% 70.7%, 
        0% 29.3%
    );
    pointer-events: none;
}

/* Contenedor de Contenido con Espacio Acomodado y Despejado */
.sky-octa-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding: 50px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Título Principal */
.sky-title-main {
    font-size: 27px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.45);
}

/* Subtítulo Inspirador */
.sky-tagline-quote {
    font-size: 13.5px;
    font-weight: 600;
    color: #e0f2fe;
    line-height: 1.4;
    margin: 0 0 18px 0;
    max-width: 380px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Formulario con Amplitud (390px de Ancho) */
#loginForm {
    width: 100%;
    max-width: 390px;
}

.sky-field-block {
    width: 100%;
    text-align: center;
    margin-bottom: 14px;
}

.sky-field-block label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 7px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(56, 189, 248, 0.5);
}

.sky-field-block label .material-symbols-outlined {
    font-size: 19px;
    color: #38bdf8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

/* Entradas en Cristal Esmerilado Suave (Baja Opacidad) */
.sky-input-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(224, 242, 254, 0.07) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.48);
    border-radius: 16px;
    padding: 12px 18px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.sky-input-shell:focus-within {
    border-color: #38bdf8;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(186, 230, 253, 0.12) 100%);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
}

.sky-input-shell input {
    background: transparent;
    border: none;
    color: #0b0f19; /* NEGRO OBSIDIANA */
    caret-color: #0284c7;
    width: 100%;
    outline: none;
    font-size: 16.5px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 1px;
    text-align: center;
}

.sky-msg-error {
    min-height: 20px;
    font-size: 13.5px;
    font-weight: 700;
    margin: 4px 0 14px 0;
    color: #f87171;
    display: none;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

/* Botón con Gradiente Azul Cielo y Relieve Táctil 3D */
.sky-btn-submit {
    position: relative;
    width: 100%;
    padding: 15px 24px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 8px;
    overflow: hidden;
}

.sky-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.65), 0 0 25px rgba(125, 211, 252, 0.4);
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #7dd3fc 100%);
}

.sky-btn-submit:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.sky-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.sky-link-return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #bae6fd;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    margin-top: 12px;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.sky-link-return:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

/* ============================================================
   VERTIENTE 2: ACCESO A RECLUTAMIENTO Y BOLSA DE TALENTO
   ============================================================ */
.sky-recruit-divider {
    width: 100%;
    max-width: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 10px 0;
}

.sky-recruit-divider::before,
.sky-recruit-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.45), transparent);
}

.sky-recruit-divider span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #bae6fd;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.sky-btn-recruit {
    width: 100%;
    max-width: 390px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(2, 132, 199, 0.28) 100%);
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.sky-btn-recruit > .material-symbols-outlined:first-child {
    font-size: 24px;
    color: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
    flex-shrink: 0;
}

.sky-recruit-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    gap: 2px;
}

.sky-recruit-text strong {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.sky-recruit-arrow {
    font-size: 20px;
    color: #7dd3fc;
    transition: transform 0.25s ease;
}

.sky-btn-recruit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(14, 165, 233, 0.45) 100%);
    border-color: #7dd3fc;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35), 0 0 18px rgba(56, 189, 248, 0.3);
}

.sky-btn-recruit:hover .sky-recruit-arrow {
    transform: translateX(4px);
    color: #ffffff;
}

/* Animación de Sacudida (Shake) */
.shake {
    animation: shakeAnim 0.4s ease-in-out;
}

@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

@media (max-width: 660px) {
    .login-page {
        padding: 20px 10px 40px !important;
        min-height: 100vh !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .sky-top-logo {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin-bottom: 16px !important;
        flex-shrink: 0 !important;
    }
    .sky-top-logo:hover {
        transform: scale(1.04) !important;
    }
    .sky-top-logo img {
        height: 38px !important;
    }
    .sky-octa-wrapper {
        width: 100% !important;
        max-width: 400px !important;
        aspect-ratio: auto !important;
        min-height: auto !important;
        border-radius: 22px !important;
        border: 1px solid rgba(56, 189, 248, 0.45) !important;
        background: rgba(15, 23, 42, 0.88) !important;
        backdrop-filter: blur(28px) !important;
        -webkit-backdrop-filter: blur(28px) !important;
        overflow: hidden !important;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7) !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        margin: auto 0 !important;
    }
    .sky-octa-card {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    .sky-octa-svg,
    .sky-octa-glass,
    .sky-octa-sheen {
        display: none !important;
    }
    .sky-octa-content {
        padding: 26px 16px !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .sky-title-main {
        font-size: 21px !important;
        letter-spacing: 1px !important;
        word-break: break-word !important;
    }
    .sky-tagline-quote {
        font-size: 12px !important;
        margin-bottom: 16px !important;
        line-height: 1.4 !important;
    }
    .sky-subtitle {
        font-size: 11px !important;
        margin-bottom: 18px !important;
    }
    #loginForm {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .sky-field-block {
        margin-bottom: 16px !important;
        width: 100% !important;
    }
    .sky-field-block label {
        font-size: 13px !important;
        letter-spacing: 1.2px !important;
    }
    .sky-input-shell {
        padding: 12px 14px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .sky-input-shell input {
        font-size: 15px !important;
        width: 100% !important;
    }
    .sky-btn-submit {
        padding: 13px 18px !important;
        font-size: 13.5px !important;
        letter-spacing: 1px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .sky-recruit-divider {
        width: 100% !important;
        max-width: 100% !important;
    }
    .sky-btn-recruit {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 14px !important;
        box-sizing: border-box !important;
    }
    .sky-recruit-text strong {
        font-size: 12px !important;
    }
    .sky-recruit-text span {
        font-size: 11px !important;
    }
}
