:root {
    --primary: #1343a7; /* Azul Educa Tech */
    --accent: #ff6600;  /* Naranja Educa Tech IA */
    --primary-dark: #0e327d;
    --secondary: #ff8533;
    --bg-soft: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

body {
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

.login-wrapper {
    background: white;
    border-radius: 40px;
    box-shadow: 0 30px 100px -20px rgba(15, 23, 42, 0.15);
    display: flex;
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    min-height: 700px;
    margin: 20px;
    border: 1px solid rgba(255,255,255,0.8);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-left {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 70px;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.login-left::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.login-left::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#ffffff10 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.login-left * { position: relative; z-index: 2; }

.brand-logo { height: 50px; width: auto; filter: brightness(0) invert(1); margin-bottom: 50px; transition: transform 0.3s ease; }
.brand-logo:hover { transform: scale(1.05); }

.login-left h1 { font-size: 3.5rem; margin: 0 0 20px 0; font-weight: 800; line-height: 1.1; letter-spacing: -2px; }
.login-left p { font-size: 1.25rem; color: #cbd5e1; line-height: 1.7; max-width: 400px; margin-bottom: 40px; }

/* Floating Cards Design */
.floating-features { display: flex; flex-direction: column; gap: 15px; }
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 25px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-10px);
    animation: slideInLeft 0.8s ease forwards;
    opacity: 0;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.glass-card:nth-child(2) { animation-delay: 0.2s; }
.glass-card:nth-child(3) { animation-delay: 0.4s; }
.glass-card:nth-child(4) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    to { transform: translateX(0); opacity: 1; }
}

.glass-card i { font-size: 1.3rem; color: var(--accent); transition: transform 0.3s ease; }
.glass-card:hover i { transform: rotate(10deg) scale(1.2); }
.glass-card span { font-size: 1rem; font-weight: 500; color: #e2e8f0; }

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 102, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

.feature-tag {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 102, 0, 0.15); padding: 12px 24px;
    border-radius: 100px; font-size: 0.95rem; font-weight: 700; color: var(--accent);
    margin-bottom: 35px; border: 1px solid rgba(255, 102, 0, 0.3);
    backdrop-filter: blur(4px);
    animation: pulse-orange 2s infinite;
}

.login-right {
    flex: 1.2;
    padding: 70px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group { margin-bottom: 25px; display: block !important; }

.input-group-custom {
    position: relative;
    margin-bottom: 25px;
}
.input-group-custom i {
    position: absolute;
    left: 22px;
    top: 31px; /* Centro exacto para un input de 62px */
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 10;
}
.input-group-custom .form-control {
    padding-left: 60px !important;
    background: #f1f5f9 !important;
    border: 2px solid #1343a7 !important; /* Borde de color de la plataforma */
    height: 62px;
}
.input-group-custom .form-control:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(19, 67, 167, 0.1) !important;
    transform: translateY(-2px);
}
.input-group-custom .form-control:focus + i {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.form-label { 
    display: block !important; 
    margin-bottom: 10px !important; 
    font-weight: 700; 
    color: #334155; 
    font-size: 0.9rem; 
    text-align: left !important; 
    width: 100% !important; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-control {
    width: 100% !important; 
    padding: 18px 24px; 
    border: 2px solid #1343a7; /* Borde de color de la plataforma */
    border-radius: 18px;
    background: #f8fafc; 
    font-family: 'Outfit'; 
    font-size: 1.05rem; 
    color: #0f172a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    box-sizing: border-box;
}
.form-control:focus {
    outline: none; border-color: #1343a7; background: white;
    box-shadow: 0 0 0 5px rgba(19, 67, 167, 0.1);
    transform: translateY(-2px);
}

.btn-login {
    background: linear-gradient(135deg, #1343a7 0%, #0e327d 100%);
    color: white; border: none; width: 100%;
    padding: 18px; border-radius: 18px; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s ease; font-family: 'Outfit'; margin-top: 15px;
    box-shadow: 0 10px 25px -5px rgba(19, 67, 167, 0.4);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-login:hover { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 150%);
    box-shadow: 0 20px 40px -10px rgba(19, 67, 167, 0.4); 
    transform: translateY(-3px) scale(1.02);
}

.login-header-custom { text-align: center; margin-bottom: 45px; }
.login-icon-box { 
    width: 75px; height: 75px;    background: #1343a7; border-radius: 22px; 
    display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 25px; font-size: 2.4rem; color: white; font-weight: 800;
    box-shadow: 0 15px 30px rgba(19, 67, 167, 0.25);
    transition: all 0.3s ease;
}
.login-icon-box:hover { transform: rotate(5deg) scale(1.1); }

.alert { 
    padding: 18px; border-radius: 18px; font-size: 1rem; margin-bottom: 30px; 
    display: none; align-items: center; gap: 15px; animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fee2e2; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #dcfce7; }

/* Opciones de Login & Checkbox Recordarme */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.remember-me-label input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.remember-me-label input[type="checkbox"]:checked::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 0.7rem;
}

.remember-me-label input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(19, 67, 167, 0.25);
}

.forgot-pass-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-pass-link:hover {
    color: var(--primary);
}

/* Highlighted Feature Tag (Bottom Left) */
.feature-tag-wrapper {
    align-self: center;
    animation: bounce-gentle-tag 4s infinite ease-in-out;
    margin-top: auto;
}

.feature-tag-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-glow-tag 2s infinite;
}

.feature-tag-highlight:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, #6366f1 100%);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.7), 0 0 20px rgba(217, 70, 239, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.feature-tag-highlight i {
    transition: transform 0.4s ease;
}

.feature-tag-highlight:hover i {
    transform: rotate(180deg) scale(1.2);
}

@keyframes pulse-glow-tag {
    0% {
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(139, 92, 246, 0.7), 0 0 15px rgba(217, 70, 239, 0.3);
    }
    100% {
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    }
}

@keyframes bounce-gentle-tag {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   Responsive Adaptations for Login Screen
   ========================================================================== */
@media (max-width: 992px) {
    body {
        padding: 10px;
        align-items: center;
        min-height: 100vh;
    }
    .login-wrapper {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
        margin: 20px auto;
        border-radius: 28px;
    }
    .login-left {
        display: none !important; /* Ocultar el banner lateral en tabletas y móviles */
    }
    .login-right {
        padding: 50px 40px;
    }
}

@media (max-width: 576px) {
    body {
        align-items: flex-start;
    }
    .login-wrapper {
        margin: 10px auto;
        border-radius: 24px;
        box-shadow: 0 15px 40px rgba(15, 23, 42, 0.1);
    }
    .login-right {
        padding: 35px 25px;
    }
    .login-header-custom {
        margin-bottom: 25px;
    }
    .login-header-custom img {
        height: 60px !important;
        margin-bottom: 15px !important;
    }
    .login-header-custom h2 {
        font-size: 1.5rem !important;
    }
    .input-group-custom {
        margin-bottom: 15px;
    }
    .input-group-custom .form-control {
        height: 52px;
        font-size: 0.95rem;
        border-radius: 14px !important;
        padding-left: 50px !important;
    }
    .input-group-custom i {
        top: 26px;
        left: 18px;
        font-size: 1rem;
    }
    .btn-login {
        padding: 14px;
        font-size: 1rem;
        border-radius: 14px;
    }
    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
}

