:root {
    --color-primary: #1d71b8;
    --color-primary-hover: #0969da;
    --color-border: #d1d9e0;
    --color-background: #ffffff;
    --color-text: #24292e;
    --color-text-secondary: #57606a;
    --color-error: #d73a49;
    --color-white: #ffffff;
    --color-gray-50: oklch(98.5% 0.002 247.839);
    --color-gray-100: oklch(96.7% 0.003 264.542);
    --color-gray-200: oklch(92.8% 0.006 264.531);
    --color-gray-300: #d1d5dc;
    --color-gray-400: #99a1af;
    --color-gray-600: #4a5565;
    --color-gray-900: #101828;
    --color-cream-100: #e8e6d9;
    --color-stale-900: oklch(20.8% 0.042 265.755);
}

html {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.wrapper {
    position: relative;
    background-color: var(--color-gray-100);
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--color-text);
    /*__variable_1fc044
    __variable_845651
    __className_1deb74
    dark:text-offgray-300
    dark:bg-[hsl(218,_13%,_7.5%)]*/
}

main {
    margin-inline: calc(0.25rem * 3);
    border-inline-style: solid;
    border-inline-width: 1px;
    border-color: var(--color-gray-200);
    /*md:mx-8
    lg:mx-12
   */
}

section {
    position: relative;
    height: 100vh;
    padding-inline: calc(0.25rem * 4);
    padding-block: calc(0.25rem * 12);
    /*
    sm:px-6*/
}

.background-body {
    position: absolute;
    background-image: url("logo.svg");
    background-repeat: repeat;
    background-size: 32px;
    z-index: 40;
    opacity: 0.03;
    inset: 0;
    mask-image: linear-gradient(#0000, #fff);
}

.wrapper-signin {
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 50;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.signin {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 28rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 0.375rem;
    padding: calc(0.25rem * 8);
    background-color: #fff9;
    box-shadow: 6px 6px 0 #1d71b80f;

    p {
        font-size: 0.875rem;
        margin-top: calc(0.25rem * 4);
        margin-bottom: calc(0.25rem * 4);
        text-align: center;
    }
    a {
        color: var(--color-gray-900);
        text-decoration: none;
        transition: color 0.3s ease-in-out;
        color: var(--color-primary);

        &:hover {
            text-decoration: underline;
        }
    }
}

.logo {
    width: 100%;
    height: 50px;
    background-image: url("logo_ucv_red.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

h1 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-gray-900);
    margin-block: calc(0.25rem * 6);
    text-align: center;
    /*font-lora text-balance scroll-mt-24 h2 text-accent-blue dark:text-blue-300 font-medium mt-8 mb-4*/
}

form {
    display: flex;
    flex-direction: column;
    gap: calc(0.25rem * 6);
    width: 100%;
    margin-block: calc(0.25 * 4);

    label {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--color-gray-900);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: calc(0.25rem * 2);
}

.form-control {
    width: 100%;
    border-radius: 0.25rem;
    padding: 6px 12px;
    font-size: 1rem;
    line-height: 20px;
    vertical-align: middle;
    white-space: nowrap;
    height: 40px;
    outline-width: 1px;
    outline-style: solid;
    outline-color: var(--color-gray-300);
    background-color: #fff;
    color: var(--color-gray-900);

    &:focus {
        outline-color: var(--color-primary);
        outline-width: 2px;
    }
}

.btn {
    display: flex;
    gap: calc(0.25rem * 1.5);
    width: 100%;
    font-size: 1rem;
    line-height: calc(1.25 / 1);
    user-select: none;
    color: #fff;
    text-wrap: nowrap;
    justify-content: center;
    align-items: center;
    height: calc(0.25rem * 10);
    border-radius: 0.375rem;
    background-color: #1d71b8;
    padding: 0 calc(0.25rem * 3) 0 calc(0.25rem * 3);
    border: 1px solid #0000;
    box-shadow:
        inset 0 -2px #144e7d,
        0 1px 3px #e6effe;

    &:hover,
    &:active {
        cursor: pointer;
        box-shadow: none;
        background-color: #165382;
    }

    &:disabled {
        cursor: not-allowed;
        box-shadow: none;
        background-color: #165382;
        opacity: 0.5;
    }
    /*
    tracking-tight
    fv-style
    lg:active:translate-y-px
    lg:active:scale-[.99]

    dark:[box-shadow:hsl(219,_93%,_30%)_0_-2px_0_0_inset,_hsl(0,_0%,_0%,_0.4)_0_1px_3px_0]
    dark:hover:[box-shadow:none]

    */
}

.error {
    color: #b42318;
    font-size: 0.875rem;
    margin-top: 4px;
    padding-block: calc(0.25rem * 2);
    text-align: center;
    border: 1px solid #b42318;
    border-radius: 0.375rem;
}

.help {
    display: flex;
    flex-direction: column;
    gap: calc(0.25rem * 2);
    margin-top: calc(0.25rem * 4);
    font-size: 0.875rem;
    color: var(--color-gray-900);

    p {
        margin-top: calc(0.25rem * 2);
        margin-bottom: calc(0.25rem * 2);
    }

    .item-help {
        display: flex;
        gap: calc(0.25rem * 1.5);
        align-items: center;

        .icon {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #000;
            font-size: 12px;
            font-weight: bold;
            margin-right: calc(0.25rem * 2);
        }
    }
}

.back {
    display: flex;
    flex-direction: column;
    margin-top: calc(0.25rem * 4);
    margin-bottom: calc(0.25rem * 4);
    gap: calc(0.25rem * 1.5);
    align-items: center;
    color: var(--color-gray-900);
    text-decoration: none;

    .link {
        display: flex;
        gap: calc(0.25rem * 1.5);
        align-items: center;
        flex-direction: row;
    }
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    /*width: 100px;*/
}

.password-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    /*border: 1px solid #ccc;*/
    /*border-radius: 4px;*/
    /*font-size: 16px;*/
}

.password-wrapper button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-wrapper button:hover {
    color: #000;
}

/* Estilo opcional para cuando está activo */
.password-wrapper.visible #eyeIcon {
    color: #3b82f6; /* Color azul al mostrar */
}
