/* signup_login.css (mais espaçado, tamanho “normal”, responsivo até telas bem pequenas) */

:root{
  /* BRAND */
  --brand: #2f6bff;
  --brand-2: #293762;
  --brand-soft: #eef3ff;

  /* NEUTROS */
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.10);

  /* EFEITOS */
  --shadow-sm: 0 6px 20px rgba(15,23,42,0.08);
  --shadow-md: 0 12px 34px rgba(15,23,42,0.12);
  --radius: 18px;

  --font: "Inter", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 450px at 70% 20%, rgba(47,107,255,0.18), transparent 60%),
    radial-gradient(700px 400px at 20% 30%, rgba(41,55,98,0.10), transparent 55%),
    var(--bg);
  overflow-x:hidden;
}

/* Centralização com respiro real */
.wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(18px, 3vw, 36px) clamp(12px, 3vw, 28px);
}

/* Card com tamanho “correto” e confortável */
.card{
  width: min(520px, 96vw);
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3.2vw, 34px);
}

.card-auth{
  width: min(540px, 96vw);
}

/* Brand maior e com respiro */
.brand{
  display:flex;
  justify-content:center;
  margin: 4px 0 22px 0;
  text-decoration:none;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-2);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1;
}
.brand span{ color: var(--brand); }

.auth-header{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px 0;
}

/* Form: espaçamento consistente */
form{
  display:flex;
  flex-direction:column;
  gap: clamp(14px, 1.8vw, 18px);
}

/* Field mais “alto” e respirando */
.field{
  position: relative;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: clamp(14px, 1.9vw, 16px) clamp(14px, 2vw, 16px);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border .15s, box-shadow .15s, background .15s;
}

.field:focus-within{
  border-color: rgba(47,107,255,0.38);
  box-shadow: 0 0 0 5px rgba(47,107,255,0.14);
  background: #fff;
}

.icon{
  width: 22px;
  height: 22px;
  color: var(--brand);
  flex: 0 0 auto;
}

.field input{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  color: var(--text);
  padding: 2px 0;
}

.field input::placeholder{
  color: rgba(100,116,139,0.95);
}

/* Esqueci senha: mais afastado do input e mais legível */
.hiperlink-forgot-password{
  font-size: clamp(.88rem, 1vw, .95rem);
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  margin: 10px 2px 0 2px;
  width: max-content;
}
.hiperlink-forgot-password:hover{
  color: var(--brand-2);
  text-decoration: underline;
}

/* Botão com presença */
.btn{
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  padding: clamp(14px, 2vw, 16px);
  font-weight: 850;
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover{
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn:active{ transform: translateY(1px); }

/* Rodapé mais espaçado */
.foot{
  margin-top: 12px;
  text-align:center;
  color: var(--muted);
  font-weight: 600;
  font-size: clamp(.98rem, 1.1vw, 1.02rem);
  line-height: 1.5;
}
.foot a{
  color: var(--brand-2);
  font-weight: 850;
  text-decoration:none;
}
.foot a:hover{ text-decoration: underline; }

.auth-form-block{
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 18px);
}

/* ====== Responsividade “de verdade” ====== */

/* Telas menores (phones) */
@media (max-width: 520px){
  .card{
    width: min(520px, 94vw);
    padding: 22px 18px;
  }
  .brand{ margin-bottom: 18px; }
  .auth-social-block{ padding: 12px; }
}

/* Telas mini (320–360px): reduz só o necessário, mantendo espaçamento */
@media (max-width: 360px){
  .wrap{ padding: 18px 10px; }

  .card{
    width: 96vw;
    padding: 18px 14px;
    border-radius: 18px;
  }

  form{ gap: 14px; }

  .field{
    padding: 13px 12px;
    border-radius: 14px;
  }

  .icon{ width: 20px; height: 20px; }

  .btn{
    border-radius: 14px;
    padding: 14px 12px;
  }
}

/* Telas MUITO pequenas (ex: 280px): evita “quebrar” tudo */
@media (max-width: 300px){
  .brand{ font-size: 1.35rem; }
  .field{ gap: 10px; }
  .field input{ font-size: .98rem; }
  .hiperlink-forgot-password{ font-size: .92rem; }
  .foot{ font-size: .92rem; }
}
/* ====== EXTRAS PARA SIGNUP (title/divider/select) ====== */

.title{
  margin: 0 0 6px 0;
  text-align: center;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 800;
  color: var(--brand-2);
  letter-spacing: -0.02em;
}

.subtitle{
  margin: 0 0 18px 0;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  font-size: clamp(.95rem, 1.2vw, 1.02rem);
}

.divider{
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0 0 18px 0;
}

/* SELECT com aparência igual ao input */
.field select{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  color: var(--text);
  appearance: none;      /* remove estilo padrão */
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 2px 0;
}

/* placeholder do select (opção desabilitada) */
.field select:invalid{
  color: rgba(100,116,139,0.95);
}

/* setinha do select */
.field-select{
  padding-right: 44px; /* espaço para caret */
}
.select-caret{
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid rgba(100,116,139,0.8);
  border-bottom: 2px solid rgba(100,116,139,0.8);
  pointer-events: none;
}

/* mobile mini */
@media (max-width: 360px){
  .subtitle{ margin-bottom: 14px; }
  .divider{ margin-bottom: 14px; }
  .field-select{ padding-right: 40px; }
  .select-caret{ right: 14px; }
}

/* erro visual nos campos (opcional) */
.field.is-error{
  border-color: rgba(239, 68, 68, 0.38) !important;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12) !important;
  background: #fff;
}
.field-hint{
  margin: -8px 2px 0 2px;
  color: #ef4444;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.35;
}
/* Ativação de conta */
.status{
  margin-top: 6px;
  text-align: center;
  display: grid;
  gap: 10px;
}

.status-icon{
  width: 58px;
  height: 58px;
  margin: 8px auto 2px auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
}

.status-icon .material-icons{ font-size: 34px; }

.status-icon.is-success{
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.25);
  color: #22c55e;
}
.status-icon.is-error{
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.25);
  color: #ef4444;
}

.actions{
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* garante boa largura em telas pequenas */
.actions .btn{
  width: 100%;
  max-width: 320px;
}

/* 1) Botão primário (Solicitar novo link) */
.btn{
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(47,107,255,0.22);
  border: 1px solid rgba(47,107,255,0.18);
  text-decoration: none;
}

.btn:hover{
  box-shadow: 0 12px 28px rgba(47,107,255,0.28);
  transform: translateY(-1px);
}

.btn.btn-ghost{
  background: rgba(255,255,255,0.75);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.btn-ghost:hover{
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

@media (min-width: 520px){
  .actions .btn{
    width: auto;
    max-width: none;
    min-width: 220px;
  }
}

/* ====== GOOGLE / SOCIAL AUTH ====== */

.auth-divider{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0;
}
.auth-divider::before,
.auth-divider::after{
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span{
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.btn-google{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: clamp(13px, 1.8vw, 15px);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(.95rem, 1.1vw, 1.02rem);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border .15s, box-shadow .15s, background .15s, transform .15s;
}
.btn-google:hover{
  border-color: rgba(66,133,244,0.35);
  box-shadow: 0 0 0 4px rgba(66,133,244,0.10);
  background: #f8faff;
  transform: translateY(-1px);
}
.btn-google:active{ transform: translateY(0); }
.btn-google .google-icon{ flex-shrink: 0; }

/* Alert de erro Google */
.auth-alert{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
}
.auth-alert-error{
  background: rgba(239,68,68,0.08);
  border: 1.5px solid rgba(239,68,68,0.22);
  color: #dc2626;
}

@media (max-width: 360px){
  .btn-google{ padding: 12px; border-radius: 14px; }
}