@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

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

    body {
      font-family: 'Poppins', sans-serif;
      background: #eaf0fa;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      padding: 20px;
    }

    .login-container {
      display: flex;
      flex-direction: column;
      background: white;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      overflow: hidden;
      width: 100%;
      max-width: 800px;
      min-height: 500px;
    }

    .logo-side {
      background: #0e1a42;
      color: white;
      padding: 30px 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
      min-height: 200px;
    }

    .logo-side i {
      color: #3498db;
      font-size: 2.5rem;
    }

    .logo-text {
      font-weight: bold;
      font-size: 2rem;
    }

    .login-box {
      padding: 30px 20px;
      width: 100%;
    }

    h2 {
      margin-bottom: 25px;
      font-size: 1.8rem;
      color: #0e1a42;
      text-align: center;
    }

    .input-group {
      margin-bottom: 20px;
    }

    label {
      display: block;
      margin-bottom: 8px;
      color: #333;
      font-weight: 500;
    }

    input {
      width: 100%;
      padding: 14px 15px;
      border-radius: 8px;
      border: 1px solid #ccc;
      outline: none;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    input:focus {
      border-color: #3498db;
      box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }

    .password-wrapper {
      position: relative;
    }

    #togglePassword {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: #888;
      font-size: 1.2rem;
    }

    button {
      width: 100%;
      padding: 16px;
      background: #0e1a42;
      color: white;
      border: none;
      border-radius: 10px;
      font-weight: bold;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      overflow: hidden;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      transition: background 0.3s, transform 0.2s;
      margin-top: 10px;
    }

    button:hover {
      background: #1a2e6b;
    }

    button:active {
      transform: scale(0.98);
    }

    button .loader {
      display: none;
      width: 20px;
      height: 20px;
      border: 3px solid rgba(255, 255, 255, 0.3);
      border-top: 3px solid white;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-left: 10px;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* Toast messages */
    .toast {
      position: fixed;
      top: 30px;
      right: 30px;
      background-color: #0e1a42;
      color: white;
      padding: 15px 20px;
      border-radius: 8px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
      opacity: 0;
      transform: translateY(-20px);
      pointer-events: none;
      z-index: 1000;
      display: flex;
      align-items: center;
      gap: 10px;
      max-width: 350px;
    }

    .toast i {
      font-size: 1.2rem;
    }

    .toast.error {
      background-color: #e74c3c;
    }

    .toast.success {
      background-color: #0e1a42;
    }

    .animacao-logo {
      display: flex;
      align-items: center;
      gap: 15px;
      transition: transform 0.3s;
    }

    .animacao-logo:hover {
      animation: logoWiggle 0.8s ease forwards;
      transform: scale(1.05);
      cursor: pointer;
    }
    
    @keyframes logoWiggle {
      0% { transform: scale(1.05) rotate(0deg); }
      25% { transform: scale(1.08) rotate(2deg); }
      50% { transform: scale(1.08) rotate(-2deg); }
      75% { transform: scale(1.08) rotate(1deg); }
      100% { transform: scale(1.05) rotate(0deg); }
    }

    /* Media Queries para responsividade */
    @media (min-width: 768px) {
      .login-container {
        flex-direction: row;
      }
      
      .logo-side {
        flex: 1;
        min-height: auto;
        padding: 40px;
      }
      
      .login-box {
        flex: 1.2;
        padding: 40px;
      }
      
      h2 {
        text-align: left;
      }
    }

    @media (max-width: 480px) {
      body {
        padding: 15px;
      }
      
      .login-container {
        border-radius: 15px;
      }
      
      .logo-side {
        padding: 25px 15px;
        min-height: 150px;
      }
      
      .logo-side i {
        font-size: 2rem;
      }
      
      .logo-text {
        font-size: 1.6rem;
      }
      
      .login-box {
        padding: 25px 15px;
      }
      
      h2 {
        font-size: 1.5rem;
      }
      
      input {
        padding: 12px;
      }
    }

    @media (max-width: 350px) {
      .logo-side {
        flex-direction: column;
        text-align: center;
        gap: 10px;
      }
      
      .logo-text {
        font-size: 1.4rem;
      }
    }