:root {
      --blue-1: #4273a4;
      --blue-2: #000f9f;
      --blue-3: #4b64bc;
      --bg: #eef6ff;
      --card-bg: #fff;
      --muted: #6b7280;
      --text: #0f2036;
      --radius: 16px;
      --success: #10b981;
      --danger: #ef4444;
    }

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

    body {
      height: 100vh;
      background: linear-gradient(135deg, rgba(0, 15, 159, 0.1), rgba(75, 100, 188, 0.15)), var(--bg);
      font-family: 'Inter', sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text);
      padding: 20px;
    }

    .login-container {
      width: 100%;
      max-width: 480px;
    }

    .login-card {
      background: var(--card-bg);
      border-radius: var(--radius);
      box-shadow: 0 25px 60px rgba(3, 23, 76, 0.15);
      padding: 48px 40px;
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 28px;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(10px);
    }

    .institution-header {
      margin-bottom: 10px;
    }

    .institution-name {
      font-size: 18px;
      font-weight: 700;
      color: var(--blue-2);
      margin-bottom: 4px;
    }

    .institution-subtitle {
      font-size: 12px;
      color: var(--muted);
      letter-spacing: 0.5px;
    }

    .logo {
      margin-bottom: 20px;
      color:white;
    }

    .logo img {
      width: 90px;
      height: 90px;
      object-fit: contain;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--blue-2), var(--blue-3));
      box-shadow: 0 8px 25px rgba(0, 15, 159, 0.2);
      padding: 8px;
    }

    .login-header h1 {
      font-size: 28px;
      font-weight: 800;
      color: var(--blue-2);
      margin-bottom: 8px;
      background: linear-gradient(135deg, var(--blue-2), var(--blue-3));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .login-header p {
      font-size: 15px;
      color: var(--muted);
      line-height: 1.5;
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-top: 15px;
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 8px;
      text-align: left;
    }

    .field label {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .field label::before {
      content: "•";
      color: var(--blue-2);
      font-weight: bold;
    }

    .field input {
      height: 52px;
      padding: 12px 16px;
      border: 1.5px solid rgba(16, 24, 40, 0.12);
      border-radius: 12px;
      font-size: 15px;
      transition: all 0.3s ease;
      background: rgba(255, 255, 255, 0.8);
    }

    .field input:focus {
      border-color: var(--blue-2);
      box-shadow: 0 0 0 4px rgba(0, 15, 159, 0.15);
      outline: none;
      background: white;
      transform: translateY(-1px);
    }

    .field input::placeholder {
      color: #9ca3af;
    }

    .btn {
      height: 62px;
      background: linear-gradient(135deg, var(--blue-3), var(--blue-2));
      color: #fff;
      font-weight: 800;
      font-size: 16px;
      border: none;
      border-radius: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      margin-top: 10px;
      position: relative;
      overflow: hidden;
    }

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

    .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 30px rgba(75, 100, 188, 0.3);
    }

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

    .btn:active {
      transform: translateY(-1px);
    }

    .footer {
      text-align: center;
      font-size: 12px;
      color: var(--muted);
      margin-top: 20px;
      line-height: 1.6;
    }

    .error {
      color: var(--danger);
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
      padding: 14px 16px;
      border-radius: 10px;
      font-size: 14px;
      margin-bottom: 20px;
      border: 1px solid rgba(239, 68, 68, 0.2);
      text-align: center;
      font-weight: 500;
    }

    .credentials-hint {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
      padding: 12px 16px;
      border-radius: 10px;
      font-size: 12px;
      margin-top: 10px;
      border: 1px solid rgba(16, 185, 129, 0.2);
      text-align: center;
    }

    .credentials-hint strong {
      color: var(--success);
      display: block;
      margin-bottom: 4px;
      font-size: 13px;
    }

    @media (max-width: 480px) {
      .login-card {
        padding: 36px 24px;
      }

      .login-header h1 {
        font-size: 24px;
      }
      
      body {
        padding: 15px;
      }
    }

    /* Animación de entrada */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .login-card {
      animation: fadeInUp 0.6s ease-out;
    }
 