
.access-body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto !important;
    font-family: 'Fredoka', sans-serif;
    background-color: #d7e6ff;
}

.access-hero {
    min-height: 100vh;
    padding: 115px 0 48px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.38) 0 90px, transparent 92px),
        radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.28) 0 120px, transparent 122px),
        linear-gradient(90deg, #80a8e4 0%, #5d8fdf 35%, #4d70ad 100%);
}

.access-intro {
    color: #071228;
    padding: 2rem 1rem;
}

.access-intro h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.055em;
    margin-bottom: 1.4rem;
}

.access-intro p {
    max-width: 520px;
    color: rgba(7, 18, 40, 0.75);
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.access-intro-icons {
    display: flex;
    gap: 0.75rem;
}

.access-intro-icons span {
    width: 54px;
    height: 54px;
    border: 2px solid;
    border-radius: 50%;
    display: grid;
    place-items: center;
    /* color: #071228; */   
    font-size: 1.2rem;
}

.access-form-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.3rem;
    border-radius: 2rem;
    background-color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(7, 18, 40, 0.12);
    box-shadow: 0 30px 80px rgba(7, 18, 40, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tab-group {
    list-style: none;
    padding: 0.35rem;
    margin: 0 0 2rem;
    display: flex;
    /* gap: 0.5rem; */
    border-radius: 999px;
    background-color: rgba(7, 18, 40, 0.08);
}

.tab-group::after {
    content: "";
    display: table;
    clear: both;
}

.tab-group li {
    width: 50%;
}

.tab-group li a {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    color: rgba(7, 18, 40, 0.65);
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.tab-group li a:hover {
    background-color: rgba(7, 18, 40, 0.12);
    color: #071228;
}

.tab-group .active a {
    background-color: #071228;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(7, 18, 40, 0.18);
}

.tab-content > div:last-child {
    display: none;
}

.access-form-card h2 {
    text-align: center;
    /* color: #071228; */
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 2rem;
}

.field-wrap {
    position: relative;
    margin-bottom: 1.4rem;
}

.top-row {
    display: flex;
    gap: 1rem;
}

.top-row::after {
    content: "";
    display: table;
    clear: both;
}

.top-row > div {
    width: 50%;
    float: none;
    margin: 0;
}

.access-form-card input,
.access-form-card textarea {
    font-size: 1rem;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(7, 18, 40, 0.18);
    color: #071228;
    border-radius: 999px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.access-form-card input::placeholder {
    color: rgba(7, 18, 40, 0.52);
}

.access-form-card input:focus,
.access-form-card textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #071228;
    box-shadow: 0 0 0 0.18rem rgba(7, 18, 40, 0.12);
}

.access-form-card textarea {
    border-radius: 1.2rem;
    resize: vertical;
}

.button {
    border: 0;
    outline: none;
    width: 100%;
    border-radius: 999px;
    padding: 1rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background-color: #071228;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
}

.button:hover,
.button:focus {
    background-color: #123c91;
    color: #ffffff;
    transform: translateY(-2px);
}

.button:disabled {
    opacity: 0.65;
    transform: none;
    cursor: not-allowed;
}

.button-block {
    display: block;
    width: 100%;
}

.forgot {
    margin-top: -0.4rem;
    margin-bottom: 1.4rem;
    text-align: right;
}

.forgot a {
    /* color: #071228; */
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.forgot a:hover {
    color: #123c91;
    text-decoration: underline;
}

#accessMessage {
    margin-bottom: 1.2rem;
    border-radius: 1rem;
}

#accessMessage.alert {
    border: 0;
    box-shadow: 0 10px 24px rgba(7, 18, 40, 0.08);
}

.access-body .main-nav .logo h1 {
    color: #000000;
}

@media (max-width: 991px) {
    .access-hero {
        padding-top: 120px;
    }

    .access-intro {
        text-align: center;
        padding-top: 0;
    }

    .access-intro p {
        margin-left: auto;
        margin-right: auto;
    }

    .access-intro-icons {
        justify-content: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575px) {
    .access-form-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .top-row {
        flex-direction: column;
        gap: 0;
    }

    .top-row > div {
        width: 100%;
    }

    .tab-group li a {
        font-size: 0.9rem;
        padding: 0.85rem 0.75rem;
    }

    .access-form-card h2 {
        font-size: 1.8rem;
    }
}

.access-tab-content {
    position: relative;
    min-height: 330px;
}

.access-tab-panel {
    width: 100%;
}

.top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

.top-row::after {
    display: none;
}

.top-row > div {
    width: 100%;
    float: none;
    margin: 0;
}

.field-wrap {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.access-form-card input,
.access-form-card textarea {
    height: 48px;
    min-height: 48px;
    line-height: 1.2;
}

.access-form-card .button {
    margin-top: 0.3rem;
}

.access-switch-text {
    margin: 1.1rem 0 0;
    text-align: center;
    /* color: rgba(7, 18, 40, 0.68); */
    font-size: 0.95rem;
}

.access-switch-text a {
    /* color: #071228; */
    font-weight: 800;
    text-decoration: none;
}

.access-switch-text a:hover {
    color: #123c91;
    text-decoration: underline;
}

.access-form-loader {
    position: absolute;
    inset: 0;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 260px;
    border-radius: 1.5rem;

    color: #071228;
    background-color: rgba(215, 230, 255, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.access-form-card.is-switching .access-tab-panel {
    pointer-events: none;
    opacity: 0.25;
}

@media (max-width: 575px) {
    .top-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .access-tab-content {
        min-height: 420px;
    }
}

.access-remember-wrap {
    margin: -0.25rem 0 1rem;
    /* color: rgba(7, 18, 40, 0.76); */
    font-size: 0.95rem;
}

.access-remember-wrap .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    min-height: auto;
    padding: 0;
    border-radius: 0.25rem;
}

.access-remember-wrap .form-check-input:checked {
    background-color: #071228;
    border-color: #071228;
}

.access-remember-wrap .form-check-label {
    cursor: pointer;
    font-weight: 600;
}

/* Registro con verificación de correo */
.access-turnstile-wrap {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0 1rem;
}

.access-verification-copy {
    text-align: center;
    margin-bottom: 1rem;
}

.access-verification-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

#verificationCode {
    text-align: center;
    letter-spacing: 0.35rem;
    font-weight: 700;
}


/* Recuperación de contraseña */
#recovery .access-verification-copy {
    color: var(--tc-text-muted);
}

#passwordRecoveryCode {
    text-align: center;
    letter-spacing: 0.35rem;
    font-weight: 800;
}

#recovery .access-switch-text {
    margin-top: 1.25rem;
}


.admin-reset-card {
    max-width: 520px;
    margin: 0 auto;
}
