/* Pantalla de acceso al Aula Virtual ITEP
   Basada en el diseno de dos paneles del portal UCSM,
   con la paleta institucional de ITEP (azul #00557F / #00A3F0). */

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

::selection {
    background: #00557F;
    color: #ffffff;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #303030;
    background-color: #011936;
}

.main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url(fondo-itep.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Orbes de fondo */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 163, 240, 0.22), transparent 70%),
                linear-gradient(135deg, rgba(1, 25, 54, 0.80) 0%, rgba(1, 25, 54, 0.65) 100%);
    z-index: 1;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.55;
    animation: floatOrb 12s infinite alternate ease-in-out;
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: rgba(0, 85, 127, 0.55);
    top: -50px;
    left: -50px;
}

.orb-2 {
    width: 380px;
    height: 380px;
    background: rgba(0, 163, 240, 0.28);
    bottom: -80px;
    right: -80px;
    animation-delay: -6s;
}

@keyframes floatOrb {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 50px) scale(1.15); }
}

.page {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Tarjeta de dos paneles */
.container {
    display: flex;
    width: 100%;
    max-width: 800px;
    min-height: 440px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.55),
                0 0 30px rgba(0, 85, 127, 0.25);
}

/* Panel izquierdo institucional */
.left {
    background: linear-gradient(145deg, #00557F 0%, #003F76 60%, #011936 100%);
    width: 48%;
    padding: 40px 32px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.left-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.institution-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;
    align-self: flex-start;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 24px 0 16px 0;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.login-title .subtitle {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.92);
}

.features-list {
    list-style: none;
    margin: 16px 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
}

.left-footer {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 16px;
    margin-top: auto;
}

/* Panel derecho de acceso */
.right {
    width: 52%;
    background: #ffffff;
    padding: 38px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
}

.logo-img {
    max-width: 210px;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

.portal-header {
    text-align: center;
    margin-bottom: 22px;
}

.portal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #011936;
    letter-spacing: -0.02em;
}

.portal-header p {
    font-size: 0.82rem;
    color: #585e6a;
    margin-top: 4px;
}

.link {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Boton principal de ingreso */
.btnlogeo {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 24px;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, #00557F 0%, #004166 100%);
    box-shadow: 0 8px 20px rgba(0, 85, 127, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
}

.btnlogeo::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transition: left 0.6s ease;
}

.btnlogeo:hover::before {
    left: 100%;
}

.btnlogeo:hover {
    background: linear-gradient(135deg, #0071AC 0%, #00557F 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 85, 127, 0.45);
    color: #ffffff;
}

.btnlogeo:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 85, 127, 0.3);
}

.btnlogeo svg {
    transition: transform 0.3s ease;
}

.btnlogeo:hover svg {
    transform: translateX(4px);
}

/* Aviso de Microsoft 365 */
.info {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F5F5F5;
    border: 1.5px dashed #b8c4d4;
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.info:hover {
    background: #ffffff;
    border-color: #00A3F0;
    box-shadow: 0 4px 12px rgba(0, 85, 127, 0.12);
}

.imgMicro {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.texto {
    font-size: 0.82rem;
    color: #585e6a;
    line-height: 1.4;
}

.texto strong {
    color: #00557F;
    font-weight: 700;
}

.alerta {
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8a1c1c;
    background: #fdf0f0;
    border: 1px solid #f3c9c9;
    border-radius: 10px;
    text-align: left;
}

.footer-help {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
}

.help-link {
    color: #585e6a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.help-link:hover {
    color: #00557F;
    text-decoration: underline;
}

.dot {
    color: #b8c4d4;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
    }

    .left {
        width: 100%;
        padding: 32px 24px;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .right {
        width: 100%;
        padding: 32px 24px;
    }
}
