:root {
    --sectei-wine: #9f0438;
    --sectei-wine-dark: #81022d;
    --sectei-orange: #f09504;
    --sectei-gray: #969696;
    --field-border: #e7e7e7;
}

* { box-sizing: border-box; }

html, body {
    width: 100%;
    min-width: 320px;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    color: #252525;
    background: #eeeeee;
    font-family: Arial, Helvetica, sans-serif;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(420px, 53.5%) minmax(480px, 46.5%);
    width: min(100%, 1600px);
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.login-visual {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)), url("../img/fondoLoginEhrPhenm.jpg") center/cover no-repeat;
}

.government-lockup {
    display: flex;
    align-items: center;
    color: var(--sectei-wine);
}

.government-lockup--hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(72%, 430px);
}

.government-logo {
    display: block;
    width: 230px;
    max-width: calc(100% - 145px);
    height: auto;
    object-fit: contain;
}

.government-divider {
    align-self: stretch;
    width: 1px;
    min-height: 86px;
    margin: 0 18px;
    background: var(--sectei-wine);
}

.government-lockup strong {
    font-size: 32px;
    letter-spacing: .5px;
}

.government-lockup--header .government-logo {
    width: 210px;
}

.login-access {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.honeycomb--top {
    position: absolute;
    top: -28px;
    right: -18px;
    width: 125px;
    height: 115px;
    opacity: .58;
    background:
        linear-gradient(30deg, transparent 43%, rgba(240,149,4,.35) 44% 47%, transparent 48%) 0 0/38px 66px,
        linear-gradient(150deg, transparent 43%, rgba(159,4,56,.12) 44% 47%, transparent 48%) 0 0/38px 66px;
}

.login-content {
    width: min(74%, 560px);
    margin: auto;
    padding: 42px 0 24px;
    text-align: center;
}

.government-lockup--header {
    justify-content: center;
    margin: 0 auto 34px;
    transform: scale(.82);
    transform-origin: center;
}

.login-content h1 {
    margin: 0 0 40px;
    color: var(--sectei-gray);
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 700;
    letter-spacing: 1px;
}

.login-content h2 {
    margin: 0 0 28px;
    color: var(--sectei-orange);
    font-size: 20px;
    font-weight: 700;
}

.login-content form { text-align: left; }

.login-content .form-group { margin-bottom: 24px; }

.login-content .form-control {
    width: 100%;
    height: 68px;
    padding: 0 28px;
    border: 1px solid var(--field-border);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .035);
    color: #333;
    font-size: 15px;
}

.login-content .form-control:focus {
    border-color: var(--sectei-wine);
    box-shadow: 0 0 0 3px rgba(159, 4, 56, .10);
    outline: 0;
}

.password-field { position: relative; }

.password-field .form-control { padding-right: 60px; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    transform: translateY(-50%);
}

.forgot-password {
    display: inline-block;
    margin: -7px 0 25px;
    color: var(--sectei-wine) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline !important;
    cursor: pointer;
}

.login-submit {
    width: 100%;
    height: 66px;
    border: 0;
    border-radius: 2px;
    background: var(--sectei-wine);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.login-submit:hover { background: var(--sectei-wine-dark); }
.login-submit:active { transform: translateY(1px); }

.pen-logo {
    display: block;
    width: 150px;
    height: auto;
    margin: 22px auto 0;
}

.login-footer {
    width: 100%;
    padding: 20px 24px 24px;
    background: #f7f7f7;
    color: #454545;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

/* Los avisos y la espera deben quedar encima del formulario de recuperacion. */
.swal2-container {
    z-index: 10000 !important;
}

.modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    overflow: auto;
    background: rgba(0,0,0,.45);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 480px);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
    transform: translate(-50%, -50%);
}

.modal-header {
    padding: 18px 22px;
    border: 0;
    background: var(--sectei-wine);
    color: #fff;
}

.modal-header h4 { margin: 0; font-size: 19px; }
.modal-body { padding: 24px; }
.modal-body .btn { background: var(--sectei-wine); border-color: var(--sectei-wine); }
.close { color: #fff; cursor: pointer; }

@media (max-width: 980px) {
    body { overflow: auto; }
    .login-page { grid-template-columns: 42% 58%; }
    .government-lockup--hero { transform: translate(-50%, -50%) scale(.72); }
    .login-content { width: 82%; }
}

@media (max-width: 720px) {
    .login-page { display: block; }
    .login-visual { display: none; }
    .login-access { min-height: 100vh; }
    .login-content { width: min(86%, 460px); padding-top: 34px; }
    .government-lockup--header { margin-bottom: 24px; transform: scale(.68); }
    .login-content h1 { margin-bottom: 24px; }
    .login-content .form-control { height: 58px; }
    .login-submit { height: 58px; }
}

@media (max-height: 760px) and (min-width: 721px) {
    .login-content { padding-top: 24px; }
    .government-lockup--header { margin-bottom: 15px; transform: scale(.66); }
    .login-content h1 { margin-bottom: 18px; font-size: 42px; }
    .login-content h2 { margin-bottom: 16px; }
    .login-content .form-group { margin-bottom: 14px; }
    .login-content .form-control { height: 52px; }
    .forgot-password { margin-bottom: 14px; }
    .login-submit { height: 52px; }
    .pen-logo { width: 120px; margin-top: 12px; }
    .login-footer { padding: 12px 20px; }
}
