@import url(variables.css);
@import url(common.css);

/* Body & Estrutura Principal */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-wrapper {
  width: 100%;
  max-width: 440px;
}

/* ==========================================================================
   CABEÇALHO (Ícone Badge, Título e Subtítulo)
   ========================================================================== */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--black);
  color: var(--white);
  margin-bottom: 16px;
}

.auth-icon-badge i {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ==========================================================================
   CARD DO FORMULÁRIO
   ========================================================================== */
.auth-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px 0 var(--palette-rgba-0-0-0-0-04);
}

/* Grupos do Formulário e Labels */
.form-group {
  margin-bottom: 20px;
}

.form-group:last-of-type {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 8px;
}

/* Input com Ícone Embutido */
.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--input-icon);
  pointer-events: none;
}

.input-icon-wrapper input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--card-bg);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-icon-wrapper input::placeholder {
  color: var(--input-icon);
}

.input-icon-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 6px;
  line-height: 1.4;
}

/* ==========================================================================
   BOTÃO PRINCIPAL
   ========================================================================== */
.btn-primary-auth {
  width: 100%;
  height: 44px;
  background-color: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary-auth:hover {
  background-color: var(--primary-hover);
}

/* ==========================================================================
   RODAPÉ (Links e Ações)
   ========================================================================== */
.auth-footer-link {
  text-align: center;
  margin-top: 24px;
}

.auth-footer-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.auth-footer-link a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.auth-footer-link svg {
  width: 16px;
  height: 16px;
}