* {margin: 0; padding: 0; box-sizing: border-box;}
    
    :root {
      --bg: #0b0f1a;
      --card: #10162a;
      --brand: #3b82f6;
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #ef4444;
      --text: #e5e7eb;
      --muted: #94a3b8;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      padding: 2rem 1rem;
      position: relative;
      overflow-y: auto;
    }

    body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.15), transparent 50%),
                  radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.1), transparent 50%);
      pointer-events: none;
      z-index: 0;
    }

    .login-container {
      width: 100%;
      max-width: 450px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .login-card {
      background: linear-gradient(135deg, var(--card), #0d1326);
      border-radius: 24px;
      padding: 3rem 2.5rem;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.05);
      animation: fadeInUp 0.6s ease;
      margin-bottom: 2rem;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .logo-container {
      text-align: center;
      margin-bottom: 2rem;
    }

    .logo {
      width: 120px;
      height: 120px;
      margin: 0 auto 1rem;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
      transition: transform 0.3s ease;
    }

    .logo:hover {
      transform: scale(1.05);
    }

    .logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 20px;
    }

    .brand-name {
      font-size: 1.75rem;
      font-weight: 700;
      background: linear-gradient(135deg, var(--text), #60a5fa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 0.5rem;
    }

    .brand-subtitle {
      font-size: 0.95rem;
      color: var(--muted);
    }

    .welcome-text {
      text-align: center;
      margin-bottom: 2rem;
    }

    .welcome-text h1 {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
      color: var(--text);
    }

    .welcome-text p {
      font-size: 0.95rem;
      color: var(--muted);
    }

    /* Alert */
    .alert {
      padding: 1rem;
      border-radius: 12px;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.9rem;
      animation: slideDown 0.3s ease;
    }

    .alert.warning {
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
      border: 1px solid var(--warning);
      color: var(--warning);
    }

    .alert.error {
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
      border: 1px solid var(--danger);
      color: var(--danger);
    }

    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Form */
    form {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    label {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    input {
      width: 100%;
      padding: 0.875rem 1rem;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(15, 23, 42, 0.6);
      color: var(--text);
      font-size: 0.95rem;
      transition: all 0.3s;
    }

    input:focus {
      outline: none;
      border-color: var(--brand);
      background: rgba(15, 23, 42, 0.8);
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    input::placeholder {
      color: var(--muted);
    }

    .btn {
      width: 100%;
      padding: 1rem;
      border-radius: 12px;
      border: none;
      background: linear-gradient(135deg, var(--brand), #60a5fa);
      color: white;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
      margin-top: 0.5rem;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
    }

    .btn:active {
      transform: translateY(0);
    }

    .links {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 1.5rem;
      font-size: 0.9rem;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .links a {
      color: var(--brand);
      text-decoration: none;
      transition: color 0.3s;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .links a:hover {
      color: #60a5fa;
      text-decoration: underline;
    }

    .btn-recuperar {
      background: transparent;
      border: 1px solid var(--brand);
      color: var(--brand);
      padding: 0.75rem 1.5rem;
      border-radius: 12px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      text-decoration: none;
      margin-top: 1rem;
      width: 100%;
      justify-content: center;
    }

    .btn-recuperar:hover {
      background: rgba(59, 130, 246, 0.1);
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    }

    /* Info Section */
    .info-section {
      background: linear-gradient(135deg, var(--card), #0d1326);
      border-radius: 24px;
      padding: 2rem;
      margin-top: 2rem;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .info-section h2 {
      font-size: 1.25rem;
      margin-bottom: 1rem;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .info-cards {
      display: grid;
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .info-card {
      background: rgba(15, 23, 42, 0.6);
      padding: 1.25rem;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      transition: all 0.3s;
    }

    .info-card:hover {
      transform: translateY(-2px);
      border-color: var(--brand);
      box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    }

    .info-card h3 {
      font-size: 1rem;
      margin-bottom: 0.5rem;
      color: var(--brand);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .info-card p {
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.6;
    }

    footer {
      text-align: center;
      margin-top: 2rem;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      font-size: 0.85rem;
      color: var(--muted);
    }

    /* Responsive */
    @media (max-width: 640px) {
      body {
        padding: 1rem 0.75rem;
      }

      .login-card {
        padding: 2rem 1.5rem;
      }

      .logo {
        width: 100px;
        height: 100px;
      }

      .brand-name {
        font-size: 1.5rem;
      }

      .welcome-text h1 {
        font-size: 1.25rem;
      }

      .info-section {
        padding: 1.5rem;
      }
    }

    /* Loading animation */
    .btn.loading {
      pointer-events: none;
      opacity: 0.7;
    }

    .btn.loading::after {
      content: '';
      width: 16px;
      height: 16px;
      border: 2px solid white;
      border-top-color: transparent;
      border-radius: 50%;
      display: inline-block;
      margin-left: 8px;
      animation: spin 0.6s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Scroll indicator */
    .scroll-indicator {
      position: fixed;
      bottom: 2rem;
      left: 50%;
      transform: translateX(-50%);
      color: var(--muted);
      font-size: 0.85rem;
      animation: bounce 2s infinite;
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      opacity: 0.7;
    }

    @keyframes bounce {
      0%, 100% { transform: translate(-50%, 0); }
      50% { transform: translate(-50%, 10px); }
    }

    .scroll-indicator.hidden {
      display: none;
    }

/* Variante de sucesso (não existia — só warning/error) */
.alert.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--success);
  color: var(--success);
}