/* RefactorAI — login.css
   Estilos exclusivos da tela de login
   ==================================== */

/* ----------------------------------------
   LAYOUT — FULL VIEWPORT CENTERED
   ---------------------------------------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ----------------------------------------
   CARD DE LOGIN
   ---------------------------------------- */
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--ra-surface);
  border-radius: 16px;
  padding: 32px;
}

/* ----------------------------------------
   CABEÇALHO DO CARD
   ---------------------------------------- */
.login-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ra-text);
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 0.875rem;
  color: var(--ra-text-secondary);
  margin-bottom: 32px;
}

/* ----------------------------------------
   CAMPOS DE FORMULÁRIO
   ---------------------------------------- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ra-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--ra-surface-2);
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius-sm);
  color: var(--ra-text);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color var(--ra-transition);
}

.form-input:focus {
  border-color: var(--ra-accent);
  outline: none;
}

.form-input::placeholder {
  color: var(--ra-text-muted);
}

/* ----------------------------------------
   WRAPPER DE SENHA COM TOGGLE
   ---------------------------------------- */
.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ra-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ra-transition);
}

.password-toggle:hover {
  color: var(--ra-text-secondary);
}

/* ----------------------------------------
   BOTÃO PRIMÁRIO
   ---------------------------------------- */
.btn-primary {
  width: 100%;
  height: 44px;
  background: var(--ra-accent);
  color: white;
  border: none;
  border-radius: var(--ra-radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--ra-transition);
  font-family: inherit;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ----------------------------------------
   MENSAGEM DE ERRO INLINE
   ---------------------------------------- */
.login-error {
  color: var(--ra-destructive);
  font-size: 0.875rem;
  margin-top: 16px;
  display: none;
}

.login-error.visible {
  display: block;
}
