/* ================= RESET ================= */
.register-page * {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* ================= FUNDO ================= */
.register-page {
  min-height: 100vh;
  background: radial-gradient(circle at center, #f3eaea 0%, #f7f5f3 40%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= CARD ================= */
.register-card {
  background: #fff;
  padding: 40px;
  border-radius: 14px;
  width: 420px;
  box-shadow: 0 10px 40px rgba(0,0,0,.08);
}

/* ================= LOGO ================= */
.register-logo {
  text-align: center;
}
.register-logo img {
  max-width: 290px;
  height: auto;
}

/* ================= TÍTULO ================= */
.register-title {
  text-align: center;
  font-size: 26px;
  color: #1a1a1a;
  margin: 20px 0;
}

/* ================= FORM ================= */
#register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================= INPUTS ================= */
.register-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f5f8ff;
  font-size: 14px;
  color: #111;
}

.register-input:focus {
  outline: none;
  border-color: #7a0f1c;
  box-shadow: 0 0 0 2px rgba(123, 15, 26, 0.15);
}

/* nunca força uppercase */
input {
  text-transform: none !important;
}

/* ================= BOTÃO CRIAR CONTA ================= */
.register-btn {
  margin-top: 10px;
  padding: 12px;
  width: 100%;
  background: linear-gradient(135deg, #7b0f1a, #5c0b13);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 15px rgba(123,15,26,.35);
  transition: .2s ease;
}

.register-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(123,15,26,.45);
}

/* ================= OLHO SENHA ================= */
.password-field {
  position: relative;
}

.eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #f1f3f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.eye svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
  stroke: #444;
  fill: none;
}

/* ================= FORÇA DA SENHA ================= */
.strength-bar {
  height: 6px;
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0 12px;
}
.strength-fill {
  height: 100%;
  width: 0%;
  transition: .3s;
}

/* ================= HINT SENHA ================= */
.password-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
}

.info-icon {
  position: relative;
  cursor: pointer;
}

.password-info {
  display: none;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 9999;
}

.info-icon:hover .password-info {
  display: block;
}

/* ================= TOAST ================= */
.register-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  display: none;
  z-index: 9999;
}

.register-toast.error {
  background: #ffe5e5;
  color: #7a0b0b;
  border-left: 4px solid #b30000;
}

.register-toast.success {
  background: #e6ffea;
  color: #0a5f2a;
  border-left: 4px solid #0f8a3a;
}

/* ================= BOTÃO VOLTAR PARA LOGIN ================= */
.back-btn {
  margin-top: 10px;
  width: 100%;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: 600;
  color: #444;
  text-decoration: none;

  background: #f1f3f6;
  border-radius: 8px;

  transition: background .2s ease, color .2s ease;
}

.back-btn:hover {
  background: #e2e6eb;
  color: #000;
  text-decoration: none;
}
