:root {
      --red: #E74C3C;
      --yellow: #F1C40F;
      --blue: #3498DB;
      --green: #27AE60;
      --light-blue: #5DADE2;
      --dark: #2C3E50;
      --light: #ECF0F1;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background: linear-gradient(135deg, #FDFEFE 0%, #F8F9F9 100%);
      min-height: 100vh;
      color: var(--dark);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    /* Fondo geométrico */
    .geometric-background {
      position: fixed;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }

    .shape {
      position: absolute;
      opacity: 0.1;
      animation: floatShape 20s infinite linear;
    }

    .triangle {
      width: 0;
      height: 0;
      border-style: solid;
    }

    .triangle-red {
      border-width: 0 50px 86.6px 50px;
      border-color: transparent transparent var(--red) transparent;
      top: 20%;
      left: 10%;
      animation-duration: 25s;
    }

    .triangle-yellow {
      border-width: 86.6px 50px 0 50px;
      border-color: var(--yellow) transparent transparent transparent;
      top: 60%;
      right: 15%;
      animation-duration: 20s;
    }

    .circle-blue {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: var(--blue);
      top: 30%;
      right: 25%;
      animation-duration: 30s;
    }

    .square-green {
      width: 100px;
      height: 100px;
      background: var(--green);
      transform: rotate(45deg);
      bottom: 20%;
      left: 20%;
      animation-duration: 22s;
    }

    .hexagon-light-blue {
      width: 90px;
      height: 52px;
      background: var(--light-blue);
      position: relative;
      top: 70%;
      left: 30%;
      animation-duration: 28s;
    }

    .hexagon-light-blue:before,
    .hexagon-light-blue:after {
      content: "";
      position: absolute;
      width: 0;
      border-left: 45px solid transparent;
      border-right: 45px solid transparent;
    }

    .hexagon-light-blue:before {
      bottom: 100%;
      border-bottom: 26px solid var(--light-blue);
    }

    .hexagon-light-blue:after {
      top: 100%;
      border-top: 26px solid var(--light-blue);
    }

    @keyframes floatShape {
      0% { transform: translate(0, 0) rotate(0deg); }
      100% { transform: translate(100px, -100px) rotate(360deg); }
    }

    /* Contenedor principal */
    .geometric-container {
      width: 100%;
      max-width: 1200px;
      min-height: 680px;
      background: white;
      border-radius: 30px;
      overflow: hidden;
      box-shadow: 0 30px 60px rgba(52, 152, 219, 0.15);
      display: flex;
      position: relative;
      z-index: 1;
      border: 10px solid white;
    }

    /* Panel de marca */
    .brand-panel {
      flex: 1;
      background: linear-gradient(135deg, var(--blue) 0%, var(--light-blue) 100%);
      padding: 50px 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .brand-panel::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: 
        linear-gradient(45deg, transparent 40%, rgba(231, 76, 60, 0.1) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(241, 196, 15, 0.1) 50%, transparent 60%);
      animation: slide 15s infinite linear;
    }

    @keyframes slide {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }

    .geometric-logo {
      text-align: center;
      margin-bottom: 60px;
      position: relative;
      z-index: 2;
    }

    .logo-shapes {
      width: 140px;
      height: 140px;
      position: relative;
      margin: 0 auto 30px;
      animation: rotate 20s infinite linear;
    }

    @keyframes rotate {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .logo-base {
      width: 100px;
      height: 100px;
      background: white;
      border-radius: 20px;
      position: absolute;
      top: 20px;
      left: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    .logo-letter {
      font-family: 'Baloo 2', cursive;
      font-size: 48px;
      font-weight: 800;
      background: linear-gradient(135deg, var(--red), var(--yellow), var(--green), var(--blue));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .color-dot {
      position: absolute;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .dot-1 { background: var(--red); top: 0; left: 0; }
    .dot-2 { background: var(--yellow); top: 0; right: 0; }
    .dot-3 { background: var(--green); bottom: 0; left: 0; }
    .dot-4 { background: var(--blue); bottom: 0; right: 0; }

    .school-title {
      font-family: 'Baloo 2', cursive;
      font-size: 3.2rem;
      color: white;
      margin-bottom: 15px;
      text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    }

    .school-description {
      color: rgba(255, 255, 255, 0.9);
      font-size: 1.2rem;
      line-height: 1.6;
      max-width: 500px;
      margin: 0 auto;
    }

    .color-pills {
      display: flex;
      gap: 15px;
      justify-content: center;
      margin-top: 50px;
      flex-wrap: wrap;
      position: relative;
      z-index: 2;
    }

    .pill {
      background: rgba(255, 255, 255, 0.2);
      padding: 15px 25px;
      border-radius: 50px;
      color: white;
      font-weight: 600;
      font-size: 1rem;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      transition: transform 0.3s;
    }

    .pill:hover {
      transform: translateY(-5px);
    }

    .pill.red { background: linear-gradient(135deg, var(--red), rgba(231, 76, 60, 0.8)); }
    .pill.yellow { background: linear-gradient(135deg, var(--yellow), rgba(241, 196, 15, 0.8)); }
    .pill.green { background: linear-gradient(135deg, var(--green), rgba(39, 174, 96, 0.8)); }
    .pill.blue { background: linear-gradient(135deg, var(--blue), rgba(52, 152, 219, 0.8)); }

    /* Panel de login */
    .login-panel {
      flex: 1;
      padding: 60px 50px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: white;
    }

    .login-header {
      margin-bottom: 50px;
    }

    .login-title {
      font-family: 'Baloo 2', cursive;
      font-size: 2.5rem;
      color: var(--dark);
      margin-bottom: 15px;
      position: relative;
    }

    .login-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 80px;
      height: 5px;
      background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--blue));
      border-radius: 5px;
    }

    .login-subtitle {
      color: #666;
      font-size: 1.1rem;
      line-height: 1.6;
    }

    .geometric-form {
      width: 100%;
      max-width: 450px;
    }

    .form-row {
      margin-bottom: 30px;
    }

    .form-label {
      display: block;
      margin-bottom: 12px;
      color: var(--dark);
      font-weight: 600;
      font-size: 1rem;
    }

    .input-group {
      position: relative;
    }

    .input-icon {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.3rem;
      color: var(--blue);
    }

    .geometric-input {
      width: 100%;
      padding: 18px 20px 18px 55px;
      border: 3px solid #E8F0FE;
      border-radius: 12px;
      font-size: 1rem;
      font-family: 'Poppins', sans-serif;
      transition: all 0.3s;
      background: #F8FAFF;
    }

    .geometric-input:focus {
      outline: none;
      border-color: var(--blue);
      box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
      background: white;
    }

    .eye-toggle {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #999;
      cursor: pointer;
      font-size: 1.3rem;
    }

    .form-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 35px;
    }

    .remember-box {
      display: flex;
      align-items: center;
    }

    .remember-box input {
      margin-right: 10px;
      width: 20px;
      height: 20px;
      cursor: pointer;
      accent-color: var(--blue);
    }

    .remember-box label {
      color: #666;
      cursor: pointer;
      font-weight: 500;
    }

    .support-link {
      color: var(--blue);
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s;
    }

    .support-link:hover {
      color: var(--green);
      text-decoration: underline;
    }

    .geometric-button {
      width: 100%;
      padding: 20px;
      background: linear-gradient(135deg, var(--red), var(--yellow), var(--green), var(--blue));
      background-size: 300% 300%;
      border: none;
      border-radius: 15px;
      color: white;
      font-size: 1.2rem;
      font-weight: 700;
      font-family: 'Baloo 2', cursive;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      box-shadow: 0 15px 30px rgba(52, 152, 219, 0.2);
      animation: gradientFlow 5s ease infinite;
    }

    @keyframes gradientFlow {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .geometric-button:hover {
      transform: translateY(-3px);
      box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
    }

    .footer-info {
      text-align: center;
      margin-top: 40px;
      padding-top: 25px;
      border-top: 1px solid #E8F0FE;
      color: #666;
      font-size: 0.9rem;
      line-height: 1.5;
    }

    .footer-info a {
      color: var(--blue);
      text-decoration: none;
      font-weight: 600;
    }

    /* Alertas */
    .alert-custom {
      background-color: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
      border-radius: 12px;
      padding: 15px 20px;
      margin-bottom: 25px;
      text-align: center;
      animation: slideDown 0.5s ease-out;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      font-weight: 500;
    }
    
    .alert-error {
      background-color: #f8d7da;
      color: #721c24;
      border-color: #f5c6cb;
    }
    
    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Responsive */
    @media (max-width: 1100px) {
      .geometric-container {
        flex-direction: column;
        max-width: 600px;
      }
      
      .brand-panel {
        padding: 40px 30px;
      }
      
      .login-panel {
        padding: 40px 30px;
      }
      
      .school-title {
        font-size: 2.5rem;
      }
      
      .login-title {
        font-size: 2rem;
      }
      
      .logo-shapes {
        width: 120px;
        height: 120px;
      }
      
      .logo-base {
        width: 80px;
        height: 80px;
      }
      
      .logo-letter {
        font-size: 36px;
      }
    }

    @media (max-width: 480px) {
      .geometric-container {
        margin: 10px;
        border: 5px solid white;
        border-radius: 20px;
      }
      
      .brand-panel, .login-panel {
        padding: 30px 20px;
      }
      
      .school-title {
        font-size: 2rem;
      }
      
      .color-pills {
        gap: 10px;
      }
      
      .pill {
        padding: 10px 20px;
        font-size: 0.9rem;
      }
      
      .form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
      }
    }

    /* Animaciones de entrada */
    .form-row, .login-header, .geometric-button, .footer-info {
      animation: fadeUp 0.6s ease forwards;
      opacity: 0;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .form-row:nth-child(1) { animation-delay: 0.1s; }
    .form-row:nth-child(2) { animation-delay: 0.2s; }
    .form-actions { animation-delay: 0.3s; }
    .geometric-button { animation-delay: 0.4s; }
    .footer-info { animation-delay: 0.5s; }