﻿body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, rgba(33, 26, 29, 1), rgba(93, 187, 230, 0)), url('/images/backgroundlogin.png') no-repeat top center/cover;
    position: relative;
}

.login-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin: 2rem;
    gap: 10%;
}

.welcome-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: var(--surface-0);
    width: 60%;
    max-width: 780px;
    text-align: justify;
}

.login-profiles {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-top: -.35rem;
}

.login-profiles__title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .95;
    color: var(--surface-0);
}

.login-profiles__title::before {
    content: "";
    width: 1.6rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--surface-0), color-mix(in srgb, var(--brand-gradient-start), var(--surface-0) 40%));
}

.login-profiles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.login-profile {
    --profile-accent: var(--brand-gradient-start);
    --profile-accent-strong: var(--brand-primary);
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--profile-accent), var(--surface-0) 74%);
    background:
        radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--profile-accent), transparent 70%) 0%, transparent 60%),
        linear-gradient(165deg, color-mix(in srgb, var(--surface-0), transparent 78%), color-mix(in srgb, var(--profile-accent-strong), transparent 82%));
    box-shadow: 0 10px 22px rgba(0, 0, 0, .24);
    padding: .9rem .85rem;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.login-profile::after {
    content: "";
    position: absolute;
    width: 5rem;
    height: 5rem;
    right: -1.8rem;
    bottom: -1.8rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--profile-accent), transparent 58%) 0%, transparent 70%);
    pointer-events: none;
}

.login-profile:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--profile-accent), var(--surface-0) 42%);
    box-shadow: 0 16px 28px rgba(0, 0, 0, .28);
}

.login-profile__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .85rem;
    display: grid;
    place-items: center;
    margin-bottom: .55rem;
    color: var(--surface-0);
    background: linear-gradient(135deg, color-mix(in srgb, var(--profile-accent-strong), var(--black) 16%), color-mix(in srgb, var(--profile-accent), transparent 22%));
    box-shadow: 0 8px 16px color-mix(in srgb, var(--profile-accent-strong), transparent 55%);
}

.login-profile__icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-profile h6 {
    margin: 0 0 .35rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--surface-0);
}

.login-profile p {
    margin: 0;
    font-size: .74rem;
    line-height: 1.4;
    color: color-mix(in srgb, var(--surface-0), var(--white) 12%);
}

.login-profile--directivo {
    --profile-accent: #63caff;
    --profile-accent-strong: #2279d8;
}

.login-profile--profesor {
    --profile-accent: #3bd6be;
    --profile-accent-strong: #0d947f;
}

.login-profile--estudiante {
    --profile-accent: #f7bc55;
    --profile-accent-strong: #de8120;
}

.logo img {
    width: 280px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: var(--brand-gradient-start);
    background-color: color-mix(in srgb, var(--surface-0) 80%, transparent);
    padding: 2rem;
    border-radius: 1rem;
    width: calc(40% - 2rem);
    flex-direction: column;
    text-align: center;
}

#recoverpassword {
    transition: font-weight .3s ease;
}

#recoverpassword:hover {
    font-weight: bold;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    width: 100%;
    display: block;
}

.socialmedia {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.socialmedia img {
    width: 100%;
    max-width: 32px;
    height: auto;
    transition: transform .3s ease;
    background-color: var(--brand-gradient-start);
    border-radius: 50%;
    padding: .1rem;
}

.socialmedia img:hover {
    transform: scale(1.1);
}

.mobile-logo {
    display: none;
}

.search-field--password .search-field__input {
    padding-right: calc(var(--control-padding-x) + var(--search-icon-size) + 1.05rem) !important;
}

.password-toggle {
    position: absolute;
    right: var(--control-padding-x);
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--search-icon-size) + 0.35rem);
    height: calc(var(--search-icon-size) + 0.35rem);
    border: none;
    background: transparent;
    color: color-mix(in srgb, var(--control-accent-strong), var(--text-muted) 72%);
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.password-toggle[hidden] {
    display: none;
}

.password-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle__icon[hidden] {
    display: none;
}

.password-toggle svg {
    width: var(--search-icon-size);
    height: var(--search-icon-size);
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-field:focus-within .password-toggle {
    color: var(--control-accent-strong);
}

.password-toggle:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--control-accent-strong), transparent 30%);
    outline-offset: 2px;
    border-radius: 999px;
}

@media screen and (max-width: 1320px) {
    .login-profiles__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-profile--estudiante {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 1024px) {

    .logo img {
        width: 200px;
    }

    .welcome-section {
        width: 40%;
    }

    .login-profiles__grid {
        grid-template-columns: 1fr;
    }

    .login-profile--estudiante {
        grid-column: auto;
    }

    .login-form {
        width: calc(60% - 4rem);
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 0;
    }

    .login-container {
        margin: 2rem;
        align-items: center;
        flex-direction: column;
    }

    .login-form h2 {
        content: "¡Bienvenido!";
    }

    .welcome-section {
        display: none;
    }

    .login-form {
        width: calc(100% - 2rem);
    }

    .mobile-logo {
        display: block;
    }

    .mobile-logo img {
        width: 180px;
        margin: 0 auto;
    }
}