/* ===== RESET / BASE ===== */
* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;      /* centraliza vertical */
  justify-content: center;  /* centraliza horizontal */
  background: #f5f6fa;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, sans-serif;
}

/* ===== CONTAINER ===== */
.ml-auth-container {
  width: 100%;
  max-width: 420px;

  background: #ffffff;
  padding: 32px 28px;
  border-radius: 14px;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);

  display: flex;
  flex-direction: column;
  align-items: center; /* centraliza conteúdo interno */
  text-align: center;
}

/* ===== TÍTULO ===== */
.ml-title {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

/* ===== ERRO ===== */
.ml-error-box {
  width: 100%;
  background: #ffefef;
  color: #9b1c1c;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* ===== FORM ===== */
.ml-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== FORM GROUP ===== */
.ml-form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ml-form-group label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* ===== INPUT ===== */
.input {
  --input-focus: #2d8cf0;
  --font-color: #323232;
  --font-color-sub: #666;
  --bg-color: #ffffff;
  --main-color: #323232;
  --error-color: #e5533d;

  width: 100%;
  height: 44px;

  border-radius: 8px;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);

  box-shadow: 3px 3px var(--main-color);

  font-size: 15px;
  font-weight: 600;
  color: var(--font-color);

  padding: 0 12px;
  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

.input::placeholder {
  color: var(--font-color-sub);
  opacity: 0.75;
}

.input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(45, 140, 240, 0.25);
  transform: translateY(-1px);
}

.input.error {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(229, 83, 61, 0.25);
}

/* ===== BOTÕES ===== */
.ml-form-actions {
  width: 100%;
  margin-top: 10px;
}

.ml-btn {
  width: 100%;
  height: 44px;

  border-radius: 10px;
  border: none;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ml-btn.success {
  background: #2d8cf0;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(45, 140, 240, 0.35);
}

.ml-btn.success:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(45, 140, 240, 0.45);
}

.ml-btn.success:active {
  transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  .ml-auth-container {
    padding: 26px 20px;
    border-radius: 12px;
  }

  .ml-title {
    font-size: 20px;
  }
}
