/* =========================================================
   EVOL-IA CONTRACTS PLATFORM
   LOGIN.CSS — acceso visual temporal
   ========================================================= */

.access-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.access-card {
    width: min(100%, 500px);
    padding: 46px;
    border: 1px solid rgba(34, 200, 255, .16);
    border-radius: 32px;
    background: rgba(7, 19, 55, .88);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
    backdrop-filter: blur(24px);
    animation: fadeIn .7s ease;
}

.access-brand {
    display: block;
    width: fit-content;
    margin: 0 auto 28px;
}

.access-logo {
    display: block;
    width: 190px;
    height: auto;
}

.access-heading {
    text-align: center;
    margin-bottom: 30px;
}

.access-eyebrow {
    display: inline-flex;
    padding: 7px 13px;
    border: 1px solid rgba(34, 200, 255, .24);
    border-radius: 999px;
    color: #31c9ff;
    background: rgba(20, 139, 225, .11);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}

.access-heading h1 {
    margin: 17px 0 10px;
    color: #fff;
    font-size: clamp(30px, 5vw, 40px);
    line-height: 1.1;
}

.access-heading p {
    color: #b9c6e7;
    font-size: 15px;
    line-height: 1.6;
}

.access-form {
    display: grid;
    gap: 18px;
}

.access-field {
    display: grid;
    gap: 8px;
}

.access-field label {
    color: #e8edff;
    font-size: 14px;
    font-weight: 650;
}

.access-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.access-label-row span {
    color: #9ba9c9;
    font-size: 12px;
}

.access-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(151, 177, 235, .26);
    border-radius: 13px;
    outline: none;
    color: #fff;
    background: rgba(11, 29, 74, .82);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.access-field input::placeholder {
    color: #7f8daf;
}

.access-field input:focus {
    border-color: #27c6ff;
    background: rgba(11, 35, 88, .95);
    box-shadow: 0 0 0 4px rgba(39, 198, 255, .13);
}

/* Ojo de mostrar/ocultar: se posiciona sobre el input, por eso el
   contenedor es relativo y el input reserva sitio a la derecha. */
.access-password {
    position: relative;
}

.access-password input {
    padding-right: 56px;
}

.access-password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 44px = objetivo tactil minimo recomendado en movil. */
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #9ba9c9;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.access-password-toggle:hover {
    color: #e8edff;
    background: rgba(151, 177, 235, .12);
}

.access-password-toggle:focus-visible {
    outline: 2px solid #27c6ff;
    outline-offset: 2px;
    color: #e8edff;
}

.access-password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* El estado lo manda aria-pressed: un solo origen de verdad para el
   lector de pantalla y para el icono visible. */
.access-password-toggle .icono-oculto {
    display: none;
}

.access-password-toggle[aria-pressed="true"] .icono-visible {
    display: none;
}

.access-password-toggle[aria-pressed="true"] .icono-oculto {
    display: block;
}

.access-submit {
    width: 100%;
    min-height: 53px;
    margin-top: 6px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(100deg, #19baf4, #8745f7);
    box-shadow: 0 12px 28px rgba(61, 91, 244, .28);
    font: inherit;
    font-size: 16px;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.access-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(80, 67, 244, .4);
}

.access-submit:focus-visible,
.access-footer a:focus-visible,
.access-brand:focus-visible {
    outline: 3px solid #31c9ff;
    outline-offset: 4px;
}

.access-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 22px;
    padding: 12px 13px;
    border: 1px solid rgba(77, 129, 239, .18);
    border-radius: 12px;
    color: #aebce0;
    background: rgba(34, 58, 120, .22);
    font-size: 12px;
    line-height: 1.45;
}

.access-notice span {
    color: #36cafb;
}

.access-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    color: #8795b8;
    font-size: 12px;
}

.access-footer a {
    color: #b9c9ef;
    text-decoration: none;
}

.access-footer a:hover {
    color: #fff;
}

@media (max-width: 560px) {
    .access-shell {
        padding: 18px 14px;
    }

    .access-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .access-logo {
        width: 165px;
    }

    .access-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* Aviso de sesion caducada. Informativo, no un error: el usuario no hizo
   nada mal, simplemente paso el tiempo. Por eso no usa el rojo de error. */
.access-aviso {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(79, 124, 255, .35);
    border-left: 3px solid var(--primary, #4F7CFF);
    border-radius: 10px;
    background: rgba(79, 124, 255, .10);
    font-size: .9rem;
    line-height: 1.45;
}
