/* ============================================================
   FTmaster — Login Styles
   login.css — tema claro teal/verde (alinhado ao site institucional)
============================================================ */

.login-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  background-color: var(--bg);
  font-family: var(--font-body);
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* Lado esquerdo — branding (tema claro teal/verde) */
.login-visual {
  flex: 1;
  background: linear-gradient(160deg, #f0fdfa 0%, #ccfbf1 55%, #99f6e4 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.login-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 18% 82%, rgba(15, 118, 110, 0.12), transparent 55%);
  pointer-events: none;
}

.login-brand-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.login-brand-logo img {
  height: 48px;
}

.login-brand-logo span {
  color: var(--primary);
}

.login-visual h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

.login-visual p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.6;
  position: relative;
}

/* Lado direito — formulário */
.login-form-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--bg);
}

.login-box {
  width: 100%;
  max-width: 400px;
}

.login-box h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.login-box p.subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: var(--bg-soft);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  background-color: #fff;
}

.btn-login {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.btn-login:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.login-footer a:hover {
  text-decoration: underline;
}

.alert-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: none;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

/* Responsivo */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .login-visual {
    padding: 3rem 2rem;
    text-align: center;
  }

  .login-brand-logo {
    justify-content: center;
  }

  .login-visual h1 {
    font-size: 2rem;
  }

  .login-visual p {
    margin: 0 auto;
  }
}
