/* esta parte es del login simple con la paleta del proyecto */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

/* esta parte es del fondo lavanda suave */
body {
    font-family: 'Inter', sans-serif;
    background: #f0eaf8;
    background-image:
        linear-gradient(rgba(10, 8, 20, 0.62), rgba(10, 8, 20, 0.62)),
        url('/static/alumnos/img/fondo_login.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* esta parte es de la tarjeta blanca del login */
.card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    padding: 44px 36px 36px;
    width: 100%;
    max-width: 380px;
    margin: 20px;
    box-shadow: 0 20px 50px rgba(76, 29, 149, 0.25);
    text-align: center;
    animation: cardIn 0.5s ease both;
}

/* barra de color superior */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #c4b5fd);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

/* esta parte es del círculo morado con el ícono arriba */
.avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4);
}

.avatar i {
    font-size: 1.9rem;
    color: #ffffff;
}

/* esta parte es del título y subtítulo */
.card h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e1b2e;
    margin-bottom: 6px;
}

.card .sub {
    font-size: 0.82rem;
    color: #a0a3b1;
    margin-bottom: 28px;
}

/* esta parte es de los inputs con fondo morado claro */
.campo {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f0ff;
    border: 1.5px solid #e9d5ff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: left;
}

.campo:focus-within {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.campo i {
    color: #a855f7;
    font-size: 1rem;
    flex-shrink: 0;
}

.campo input {
    border: none;
    background: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #1e1b2e;
    width: 100%;
}

.campo input::placeholder {
    color: #c4b5fd;
}

/* esta parte es del mensaje de error */
.error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    font-size: 0.8rem;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 14px;
}

/* esta parte es del botón de ingresar */
.btn {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
    background: linear-gradient(135deg, #9333ea, #6b21a8);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.42);
}

.btn:hover {
    background: #9333ea;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* esta parte es del texto pequeño de abajo */
.footer {
    margin-top: 22px;
    font-size: 0.8rem;
    color: #a0a3b1;
}

.footer a {
    color: #a855f7;
    font-weight: 600;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* esta parte es del separador y los links de prof/admin */
.sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 14px;
}

.sep-line {
    flex: 1;
    height: 1px;
    background: #f0eaf8;
}

.sep-text {
    font-size: 0.73rem;
    color: #c4b5fd;
    white-space: nowrap;
}

.links-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-extra {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #7c3aed;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
}

.link-extra:hover {
    background: #f3e8ff;
    border-color: #a855f7;
}

.link-extra i {
    color: #a855f7;
}

.link-extra span {
    flex: 1;
}

/* esta parte es del modal de acceso especial */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(168, 85, 247, 0.15);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 36px 30px;
    width: 100%;
    max-width: 340px;
    margin: 20px;
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.15);
    position: relative;
    text-align: center;
    animation: pop 0.22s ease;
}

@keyframes pop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

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

.modal-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.3rem;
    color: #fff;
    background: #a855f7;
}

.modal-avatar.azul {
    background: #3b82f6;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b2e;
    margin-bottom: 4px;
}

.modal-sub {
    font-size: 0.77rem;
    color: #a0a3b1;
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #c4b5fd;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #7c3aed;
}

.btn-modal {
    width: 100%;
    padding: 13px;
    margin-top: 4px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: filter 0.2s, transform 0.15s;
}

.btn-modal.morado {
    background: #a855f7;
}

.btn-modal.azul {
    background: #3b82f6;
}

.btn-modal:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* esta parte es del link de volver al inicio */
.btn-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-home:hover {
    color: #a855f7;
}

/* esta parte es del botón de iniciar con Google */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border: 1.5px solid #e9d5ff;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e1b2e;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    background: #faf5ff;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.08);
}

/* botón mostrar/ocultar contraseña */
.toggle-pass {
    background: none;
    border: none;
    cursor: pointer;
    color: #c4b5fd;
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-pass:hover {
    color: #a855f7;
}