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

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

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

/* Header */
.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: 16px;
  background-color: var(--auth-accent);
  color: var(--white);
  margin-bottom: 16px;
}

.auth-icon-badge svg {
  width: 28px;
  height: 28px;
}

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

.auth-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Card */
.auth-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px 0 var(--palette-rgba-0-0-0-0-05);
}

/* Formulário e Inputs com Ícones */
.form-group {
  margin-bottom: 20px;
}

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

.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(--text-subtle);
  pointer-events: none;
}

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

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

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

.resend-code-button,
.edit-registration-button {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-600);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.resend-code-button:disabled,
.edit-registration-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* Botão de Cadastro */
.btn-primary-auth {
  width: 100%;
  height: 44px;
  background-color: var(--auth-accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.15s ease;
}

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

/* Footer */
.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 24px;
}

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

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

.form-message {
  min-height: 18px;
  margin-top: 8px;
  color: var(--palette-b91c1c);
  font-size: 13px;
  line-height: 1.4;
}

.form-message:empty { display: none; }

.form-message.success { color: var(--green-dark); }

.btn-primary-auth:disabled {
  cursor: wait;
  opacity: 0.7;
}