:root {
    --primary: #000000;
    --primary-light: #22211F;
    --primary-disabled: #363435;
    --primary-lighter: #454344;
    --secondary: #1D1D1D;
    --text: #11181C;
    --text-gray: #687076;
    --text-placeholder: #8890A7;
    --border: #DFE3E6;
    --btn-bg: #EDEDED;
    --input-bg: #F1F2F3;
    --background: #F8F8FF;
    --error: #e5484d;

    --log-danger:       #ef4444;
    --log-danger-lt:    #fef2f2;
    --log-danger-bdr:   #fecaca;
    --log-danger-dk:    #991b1b;
    --log-warn:         #f59e0b;
    --log-warn-lt:      #fffbeb;
    --log-warn-bdr:     #fde68a;
    --log-warn-dk:      #92400e;
    --log-primary:      #009c86;
    --log-primary-lt:   #e6f7f5;
    --log-primary-bdr:  rgba(0,156,134,.25);
    --log-primary-dk:   #005a4d;
    --log-text1:        #0f2622;
    --log-text2:        #3d6b63;
    --log-text3:        #7a9e97;
    --log-font:         'Outfit', sans-serif;
    --log-mono:         'JetBrains Mono', monospace;
    --log-rad:          10px;
    --log-rad-sm:       7px;
    --log-trans:        all .22s cubic-bezier(.4,0,.2,1);
}


html {
    height: 100%;
    /* height: 100vh; */
}

body {
    font-family: 'Poppins', sans-serif;
    height: 100%;
    /* height: 100vh; */
    padding: 1rem;
    display: grid;
    place-items: center;
    background: var(--background);
    /* background: #dcd8d7; */
    /* background: url('assets/bg-pattern1.png') repeat center center;
    background-position: cover;
    background-size: cover;
    background-repeat: no-repeat; */
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../../images/login/fondo1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment:scroll;
    z-index: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::selection {
    background: var(--primary-light);
    background: #047857;
    color: white;
}

.socials-row {
    display: flex;
}

.socials-row img {
    width: 1.5rem;
    height: 1.5rem;
}

.socials-row>a {
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
    display: flex;
    gap: 0.75rem;
    color: var(--text);
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--text);
    padding: 0.5rem;
    border: 1px solid var(--border);
    transition: all .3s ease;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 1px 4px 0px;
}

.socials-row > a svg {
    color: var(--text)
}

.socials-row > a:hover {
    background-color: var(--btn-bg);
}

/* .form-welcome-row {
    margin-bottom: 1rem;
} */

.form-welcome-row h1 {
    color: var(--text);
    font-size: 2rem;
    line-height: 2rem;
    font-weight: normal;
    margin-top: 2rem;
    color: #0a1915;
    text-align: center;
}

.form-welcome-row h2 {
    color: var(--text-gray);
    font-size: 1.10rem;
    font-weight: normal;
    text-align: center;
}

.cont-mask{
    margin: 0 auto;
    padding: 0;
}
.mascota{
    width: 12rem;
    height: 12rem;
    filter: drop-shadow(0px 0px 2px #04785779);
}

.form-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
    gap: 1rem;
    max-height: 200rem;
    height: 100%;
    width: 100%;
    width: 80rem;
    gap: 0;
    border-radius: 15px;
    padding: 0;
    /* background: transparent;
    backdrop-filter: blur(2px); */
}

.form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.logo {
    width: 5rem;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}
#logo__utpsg{
    display: none !important;
}



.my-form {
    display: flex;
    flex-direction: column;
    justify-content: start;
    position: relative;
    gap: 1.25rem;
    max-width: 28rem;
    width: 100%;
    border-radius: 1rem;
    /* background: rgba(255, 255, 255, .5); */
    /* background: transparent; */
    backdrop-filter: blur(2px);
    padding: 0 1rem;
}

.my-form__button {
    /* background: var(--primary); */
    background: radial-gradient(circle, #008f70, #0d6c54);
    border: 1px solid var(--primary-light);
    color: white;
    white-space: nowrap;
    display: grid;
    place-items: center;
    margin-top: 1.5rem;
    line-height: 2.75rem;
    outline: none;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .15);
    transition: all .3s ease;
}

.my-form__button:hover{
    background: radial-gradient(circle, #008f70, #0f7d61);
}
/* .my-form:invalid .my-form__button {
    pointer-events: none;
    background: var(--primary-disabled);
    border: 1px solid var(--primary-light);
    background: linear-gradient(135deg, #059669, #047857);
} */

.my-form__actions {
    display: flex;
    flex-direction: column;
    color: var(--secondary);
    gap: 1rem;
    margin-top: 0.5rem;
}

.my-form__actions a {
    color: var(--text);
}

.my-form__actions a:hover {
    color: var(--text-gray);
    color: #059669;
    text-decoration: underline;
}

.my-form__row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.text-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-field input {
    color: var(--secondary);
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--border);
    min-height: 3rem;
    letter-spacing: .03rem;
    outline: none;
    background: var(--input-bg);
    transition: .25s;
    border-radius: 0.5rem;
    text-indent: 1.25rem;
    font-size: 0.9rem;
}

.text-field label {
    font-weight: bold;
    color: var(--text);
}

.text-field input:user-invalid {
    /* background: var(--white); */
    color: var(--error);
    color: #059669;
    border: 1px solid var(--error);
    border: solid 1px #059669;

}

.error-message {
    display: none;
}

.text-field input:user-invalid~.error-message {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--error);
}

.text-field input:focus {
    border: 1px solid var(--text);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 1px 4px 0px;
}

/* aside */
.info-side {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2rem;
    /* background: url('assets/clients-bg.jpg') repeat center center;
    background-position: cover;
    background-size: cover;
    background-repeat: no-repeat; */
    max-height: 90rem;
}

.info-side .blockquote-wrapper {
    gap: 1rem;
    position: relative;
    padding: 1rem;
    /* max-width: 25rem; */
    width: 30rem;
    /* background: white;
    background: rgba(255, 255, 255, .3); */
    /* background: transparent; */
    backdrop-filter: blur(2px);
    border-radius: 1rem;
}
.info-side .blockquote-wrapper h1 {
    font-size: 1.5rem;
    text-align: center;
    color: #0a1915;
}
.info-side .blockquote-wrapper img {
    width: 100%;
    max-width: 100%;
    border-radius: 1rem;
}

.info-side .blockquote-wrapper blockquote {
    margin-bottom: 1rem;
    width: 100%;
    font-size: 1rem;
}

.info-side .author {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.info-side .author img {
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
}

.info-side .author-name {
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 720px) {
    .my-form__row {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    .form-wrapper {
        grid-template-columns: 1fr;
    }

    .info-side {
        display: none;
    }
}

/* ════════════════════════════════
   LOGIN MODULE · prefijo log-
════════════════════════════════ */

/* ── CAPTCHA COMPACTO ── */
.log-captcha {
    border-radius: var(--log-rad);
    padding: 10px 13px;
    background: var(--log-primary-lt);
    border: 1px solid var(--log-primary-bdr);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: logToastIn .28s ease both;
}

.log-captcha::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--log-primary);
    border-radius: 0;
}

.log-captcha-icon {
    width: 26px; height: 26px;
    border-radius: 7px; flex-shrink: 0;
    background: rgba(0,156,134,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; color: var(--log-primary);
}

.log-captcha-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.log-captcha-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--log-primary-dk);
    margin: 0;
}

.log-captcha-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.log-captcha-question {
    font-size: .8rem;
    font-weight: 600;
    color: var(--log-text1);
    font-family: var(--log-mono);
    background: #fff;
    border: 1px solid var(--log-primary-bdr);
    border-radius: 6px;
    padding: 5px 10px;
    white-space: nowrap;
}

.log-captcha-eq {
    font-size: .72rem;
    color: var(--log-text3);
}

.log-captcha-input {
    flex: 1;
    border: 1px solid var(--log-primary-bdr);
    border-radius: 6px;
    padding: 5px 10px;
    font-family: var(--log-font);
    font-size: .8rem;
    color: var(--log-text1);
    background: #fff;
    outline: none;
    transition: var(--log-trans);
    min-width: 0;
}

.log-captcha-input:focus {
    border-color: var(--log-primary);
    box-shadow: 0 0 0 2px rgba(0,156,134,.1);
}

/* ── TOAST CONTAINER: fixed, centrado arriba, fuera del flujo ── */
#log-toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 360px;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none; /* no interfiere con el form */
}

/* ── TOAST BASE ── */
.log-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--log-rad);
    padding: 10px 12px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    pointer-events: all;
    box-shadow: 0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
    animation: logToastIn .28s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes logToastIn {
    from { opacity: 0; transform: translateY(-10px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

.log-toast.toast-out { animation: logToastOut .2s ease both; }

@keyframes logToastOut {
    from { opacity: 1; transform: translateY(0)    scale(1); }
    to   { opacity: 0; transform: translateY(-8px) scale(.97); }
}

.log-toast::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    border-radius: 0;
}

/* tipos */
.log-toast--error   { background: var(--log-danger-lt); border-color: var(--log-danger-bdr); }
.log-toast--error::before   { background: var(--log-danger); }
.log-toast--blocked { background: var(--log-warn-lt);   border-color: var(--log-warn-bdr); }
.log-toast--blocked::before { background: var(--log-warn); }
.log-toast--unlocked { background: #f0faf9; border-color: rgba(0,156,134,.3); }
.log-toast--unlocked::before { background: var(--log-primary); }

/* icono */
.log-toast-icon {
    font-size: .82rem;
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
}
.log-toast--error    .log-toast-icon { background: rgba(239,68,68,.12); color: var(--log-danger); }
.log-toast--blocked  .log-toast-icon { background: rgba(245,158,11,.13); color: var(--log-warn); }
.log-toast--unlocked .log-toast-icon { background: rgba(0,156,134,.13);  color: var(--log-primary); }

/* contenido */
.log-toast-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.log-toast-title { font-size: .78rem; font-weight: 700; margin: 0; white-space: nowrap; }
.log-toast-sep   { font-size: .68rem; color: var(--log-text3); }
.log-toast-body  { font-size: .74rem; margin: 0; opacity: .85; }

.log-toast--error    .log-toast-title { color: var(--log-danger-dk); }
.log-toast--blocked  .log-toast-title { color: var(--log-warn-dk); }
.log-toast--unlocked .log-toast-title { color: #005a4d; }
.log-toast--unlocked .log-toast-body  { color: #3d6b63; opacity: 1; }

/* timer pill */
.log-toast-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245,158,11,.18);
    color: #92400e;
    border-radius: 20px;
    padding: 1px 8px;
    font-size: .68rem;
    font-weight: 700;
    font-family: var(--log-mono);
}
.log-toast-timer i { font-size: .55rem; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */

/* ===============================
   📱 MOBILE (0px — 767px)
   =============================== */
@media (max-width: 767px) {

    body {
        padding: 0;
        display: block;
    }

    .logo {
        width: 4rem;
        position: absolute;
        top: 1rem;              
        left: 50%;              
        transform: translateX(-50%); 
        z-index: 10;
        display: none;
    }
    #logo__utpsg{
        width: 6rem;
        position: absolute;
        top: 1rem;              
        left: 50%;              
        transform: translateX(-50%); 
        z-index: 10;
        display: block !important;

    }


    .form-wrapper {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 2rem 1rem 1rem 1rem;
        height: auto;
        margin-top: 2rem;
    }

    .info-side {
        display: none !important;
    }

    .my-form {
        max-width: 100%;
        padding: 0 1rem;
    }

    .form-welcome-row h1 {
        font-size: 1.7rem;
    }

    .mascota {
        width: 10rem;
        height: auto;
    }

    .text-field label {
        font-size: 0.95rem;
    }

    .text-field input {
        font-size: 0.9rem;
        min-height: 2.8rem;
    }

    .my-form__button {
        font-size: 1rem;
        line-height: 2.6rem;
    }
}


/* ── TOGGLE CONTRASEÑA ── */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 3rem; /* espacio para el icono */
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    border-radius: 0.375rem;
    transition: color .2s ease, background .2s ease;
    outline: none;
    /* evita que el botón agrande el wrapper */
    line-height: 0;
}

.toggle-password:hover {
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
}

.toggle-password:focus-visible {
    box-shadow: 0 0 0 2px rgba(0,156,134,.25);
}



/* ===============================
   📟 TABLET (768px — 1023px)
   =============================== */
@media (min-width: 768px) and (max-width: 1023px) {

    .form-wrapper {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        padding: 1rem;
        gap: 1rem;
    }

    .logo {
        width: 6rem;
        position: absolute;
        top: 1rem;              
        left: 50%;              
        transform: translateX(-50%); 
        z-index: 10;
        display: none;
    }
    #logo__utpsg {
        width: 8rem;
        position: absolute;
        top: 1rem;              
        left: 50%;              
        transform: translateX(-50%); 
        z-index: 10;
        display: block !important;
    }


    .info-side .blockquote-wrapper {
        width: 22rem;
    }

    .info-side .blockquote-wrapper h1 {
        font-size: 1.2rem;
    }

    .my-form {
        max-width: 24rem;
    }

    .mascota {
        width: 12rem;
    }
}




/* ===============================
   💻 LAPTOP (1024px — 1439px)
   =============================== */
@media (min-width: 1024px) and (max-width: 1439px) {

    .form-wrapper {
        width: 70rem;
    }

    .info-side .blockquote-wrapper {
        width: 26rem;
    }

    .logo {
        width: 8rem;
        display: none !important;
    }
    #logo__utpsg{
        width: 10rem;
        display: block !important;
    }

    .mascota {
        width: 14rem;
    }
}


/* ===============================
   🖥️ PC (1440px en adelante)
   =============================== */
@media (min-width: 1440px) {

    .form-wrapper {
        width: 85rem;
        max-width: 100%;
    }

    .info-side .blockquote-wrapper {
        width: 32rem;
    }

    .form-welcome-row h1 {
        font-size: 2.4rem;
    }

    .mascota {
        width: 16rem;
    }
}


