.auth-shell {
    width: min(760px, 100%);
    min-height: 520px;
    height: 520px;
    background: transparent
}

.brand-panel {
    padding: 36px 32px 30px;
    border-radius: 22px 0 0 22px
}

.form-panel {
    padding: 24px 30px;
    background: #ffffff
}

.login-card {
    max-width: 420px;
    position: relative;
    top: -10px
}

.brand-panel h1 {
    font-size: 27px
}

.college-logo {
    display: block;
    width: 280px;
    height: 100px;
    margin: 0 0 14px -18px;
    object-fit: contain;
    object-position: left center;
}

.brand-copy {
    font-size: 14px
}

.benefits {
    gap: 11px
}

.benefit {
    grid-template-columns: 44px 1fr;
    gap: 10px
}

.benefit-icon {
    width: 44px;
    height: 44px;
    font-size: 21px
}

.benefit-icon svg {
    display: block;
    width: 25px;
    height: 25px
}

.benefit strong {
    font-size: 13px
}

.benefit span span {
    font-size: 11px
}

.login-header .cap {
    width: 54px;
    height: 46px;
    margin: 0 auto 5px;
    display: block;
    position: static;
    transform: none;
    background: url('../images/icono-birrete-diploma.png') center / contain no-repeat;
    overflow: hidden
}

.login-header .cap>* {
    display: none;
}

.login-header .graduation-icon {
    display: block;
    width: 145px;
    height: 85px;
    margin: 0 auto 5px;
    object-fit: contain;
    position: relative;
    top: 14px;
}

.login-header .emblem-logo {
    display: none;
    width: 340px;
    height: 100px;
    margin: 0 auto 6px;
    object-fit: contain;
}

.login-header h2 {
    font-size: 24px
}

.login-header p {
    margin-bottom: 20px;
    font-size: 14px
}

.field {
    margin-bottom: 15px
}

input {
    height: 48px;
    font-size: 14px
}

.primary-button,
.public-button {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    font-size: 15px
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 19px
}

.separator,
.public-button {
    display: none;
}

.has-error input {
    border-color: var(--line) !important;
    box-shadow: none !important;
}

.form-alert {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 22, 42, .58);
    font-size: 14px;
}

.form-alert strong,
.form-alert span {
    display: block;
}

.form-alert::before {
    content: "";
    position: absolute;
    width: min(360px, calc(100% - 40px));
    height: 150px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(3, 24, 52, .3);
}

.form-alert button {
    position: relative;
    z-index: 1;
    justify-self: end;
    width: 28px;
    height: 28px;
    margin: -78px calc((100% - min(360px, calc(100% - 40px))) / 2) 0 0;
    border: 0;
    border-radius: 50%;
    color: #64748b;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.form-alert strong,
.form-alert span {
    position: relative;
    z-index: 1;
    width: min(300px, calc(100% - 80px));
    margin-left: auto;
    margin-right: auto;
    color: #102d61;
}

.form-alert strong {
    margin-top: -45px;
    margin-bottom: 8px;
    font-size: 18px;
}

.form-alert span {
    line-height: 1.45;
}

.form-alert::before {
    display: none;
}

.alert-card {
    position: relative;
    z-index: 1;
    width: min(380px, 100%);
    padding: 30px 28px 26px;
    border-top: 4px solid #1674ed;
    border-radius: 14px;
    text-align: center;
    background: #fff;
    box-shadow: 0 20px 55px rgba(3, 24, 52, .3);
}

.alert-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border: 4px solid #bfdbfe;
    border-radius: 50%;
    color: #1674ed;
    background: #eff6ff;
    font-size: 24px;
    font-weight: 700;
}

.alert-card strong,
.alert-card span {
    width: auto;
    margin: 0;
}

.alert-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.alert-card span {
    display: block;
    color: #64748b;
}

.alert-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    border: 0;
    color: #64748b;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.alert-confirm {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 20px 0 0 !important;
    margin-top: 20px;
    padding: 9px 20px;
    border: 0;
    border-radius: 7px;
    color: #fff !important;
    background: #1674ed !important;
    font: inherit;
    cursor: pointer;
}

/* Modal de validación con composición horizontal */
.form-alert {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px !important;
    background: rgba(71, 85, 105, .58) !important;
}

.form-alert .alert-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: min(342px, 100%);
    padding: 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    text-align: left;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .2);
}

.form-alert .alert-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    border: 0;
    color: #dc2626;
    background: #fee2e2;
    font-size: 17px;
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.form-alert .alert-content strong,
.form-alert .alert-content span {
    width: auto;
    margin: 0;
    text-align: left;
}

.form-alert .alert-content strong {
    display: block;
    margin-bottom: 6px;
    color: #172033;
    font-size: 14px;
}

.form-alert .alert-content span {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.alert-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.form-alert .alert-actions button {
    position: static !important;
    width: auto !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 16px;
    border-radius: 6px;
    font: inherit;
    font-size: 11px;
}

.form-alert .alert-close {
    border: 1px solid #cbd5e1;
    color: #475569;
    background: #fff;
}

.form-alert .alert-confirm {
    border: 0;
    color: #fff !important;
    background: #dc2626 !important;
}

.form-alert .alert-card {
    display: block;
    width: 430px !important;
    max-width: calc(100vw - 20px) !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 14px !important;
    text-align: left;
}

.alert-main {
    display: flex !important;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 22px 22px;
}

.form-alert .alert-icon {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    color: #ef1f2f;
    background: #ffe1e4;
}

.form-alert .alert-icon svg {
    width: 25px;
    height: 25px;
}

.form-alert .alert-content {
    padding-top: 3px;
}

.form-alert .alert-content strong {
    margin-bottom: 10px;
    color: #111827;
    font-size: 20px;
}

.form-alert .alert-content span {
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}

.form-alert .alert-actions {
    display: flex !important;
    position: static !important;
    justify-content: flex-end;
    margin: 0;
    padding: 10px 22px;
    background: #f8fafc;
}

.form-alert .alert-actions .alert-confirm {
    height: 38px !important;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
}

.form-alert.success-alert .alert-icon {
    color: #16a34a;
    background: #dcfce7;
}

.form-alert.success-alert .alert-actions .alert-confirm {
    background: #16a34a !important;
}

.brand-panel::before,
.brand-panel::after {
    display: none;
}

body {
    background: #ffffff;
}

body::before,
body::after {
    display: none;
}

#space-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(135deg, #0b2d4a 0%, #165784 52%, #2378bb 100%);
}

.auth-shell {
    position: relative;
    z-index: 1;
}

.secure-note svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.secure-note span {
    display: inline;
}

.secure-note a {
    display: flex !important;
    width: max-content !important;
    margin: 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
}

.secure-note a:hover {
    color: #27313f !important;
    border-color: #b9d4f5;
    background: #eaf3ff;
}

.secure-note a:hover .back-arrow {
    color: #71809a !important;
}

.sending-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(71, 85, 105, .58);
}

.sending-dialog {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(360px, 100%);
    padding: 22px 24px;
    border: 1px solid #d9e0e9;
    border-radius: 14px;
    color: #102d61;
    background: #fff;
    box-shadow: 0 20px 55px rgba(3, 24, 52, .3);
    animation: sending-appear .2s ease-out;
}

.sending-dialog strong,
.sending-dialog span:not(.sending-spinner) {
    display: block;
}

.sending-dialog strong {
    font-size: 18px;
    letter-spacing: -.2px;
}

.sending-dialog span:not(.sending-spinner) {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.sending-spinner {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 3px solid #dbeafe;
    border-top-color: #1674ed;
    border-right-color: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 0 5px #eff6ff;
    animation: sending-spin .8s linear infinite;
}

@keyframes sending-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes sending-appear {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Iconos de campos: se reemplazan los glifos antiguos por trazos limpios */
.input-icon {
    width: 21px;
    height: 21px;
    font-size: 0;
    color: #71809a;
}

.input-icon::before,
.input-icon::after {
    content: none !important;
    display: none !important;
}

.input-icon svg {
    display: block;
    width: 21px;
    height: 21px;
}

#user-field .input-icon::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 6px;
    width: 7px;
    height: 7px;
    border: 1.8px solid currentColor;
    border-radius: 50%;
}

#user-field .input-icon::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: 1px;
    width: 15px;
    height: 8px;
    border: 1.8px solid currentColor;
    border-radius: 9px 9px 3px 3px;
}

#password-field .input-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 1px;
    width: 14px;
    height: 11px;
    border: 1.8px solid currentColor;
    border-radius: 3px;
}

#password-field .input-icon::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 1px;
    width: 8px;
    height: 10px;
    border: 1.8px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.toggle-password {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 0;
}

.toggle-password::before,
.toggle-password::after {
    content: none !important;
    display: none !important;
}

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

.primary-button span svg {
    display: block;
    width: 20px;
    height: 20px;
}

.primary-button span img {
    display: block;
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain;
    filter: invert(1);
}

.primary-button>span {
    display: inline-flex;
    align-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.primary-button>span svg {
    display: block;
    width: 20px;
    height: 20px;
}

.primary-button {
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.primary-button:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 116, 237, .28);
}

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

.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-button>span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.toggle-password::before {
    content: "";
    display: block;
    width: 18px;
    height: 11px;
    border: 1.8px solid currentColor;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0 2px, transparent 2.2px);
    transform: rotate(0);
}

.toggle-password::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 1.8px;
    background: currentColor;
    transform: rotate(45deg);
}

@media(max-width:820px) {
    body {
        padding: 0;
    }

    .auth-shell {
        width: 100vw;
        max-width: 100vw;
        min-height: 100vh;
        height: auto;
        display: block;
        overflow: hidden;
        border-radius: 0
    }

    .brand-panel {
        width: 100%;
        padding: 38px 34px;
        border-radius: 0
    }

    .form-panel {
        width: 100%;
        padding: 44px 32px 40px;
        border-radius: 0
    }
}

@media(max-width:520px) {
    .form-options {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        white-space: nowrap;
        font-size: 12px;
    }

    .form-options a {
        white-space: nowrap;
    }
}
