:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --brand: #22d3ee;
  --brand-strong: #06b6d4;
  --danger: #ef4444;
  --ring: rgba(34, 211, 238, .35);
  --card: #0b1220;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 18px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  zoom: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  /* Gradientes com tamanhos baseados no canto mais distante (farthest-corner) */
  background: radial-gradient(farthest-corner at 80% 0%, rgba(6, 182, 212, .18), transparent 60%),
    radial-gradient(farthest-corner at 0% 100%, rgba(52, 211, 153, .14), transparent 60%),
    var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100%;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  zoom: 0.8; /* Deixa tudo 10% menor. Experimente valores como 0.85 ou 0.95 */
  /*transform: scale(0.9); /*Solução oficial*/ 
}

.signup-container {
  width: 100%;
  max-width: 420px;
  padding-bottom: 20px;
  margin-top: auto;
  margin-bottom: auto;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)), var(--card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.header {
  text-align: center;
  margin-bottom: 24px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: radial-gradient(120% 120% at 0% 0%, var(--brand-strong), var(--brand));
  box-shadow: 0 8px 28px rgba(6, 182, 212, .45), inset 0 0 18px rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #002a34;
  letter-spacing: .5px;
  font-size: 20px;
  margin: 0 auto 12px auto;
}

h1 {
  font-size: 22px;
  margin: 0
}

.muted {
  color: var(--muted);
  font-size: 14px
}

.form {
  display: grid;
  gap: 16px;
}

label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px
}

input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .25);
  background: #0b1425;
  color: var(--text);
  outline: none;
  font-size: 16px;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring)
}

/* --- ESTILOS PARA O BOTÃO DE EXIBIR SENHA --- */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px; /* Espaço para o ícone */
}

.toggle-password {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border-radius: 0 12px 12px 0;
}

.toggle-password:hover {
    color: var(--text);
}
/* --- FIM DOS ESTILOS --- */


button[type="submit"] {
  border: 0;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: #062028;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 10px 24px rgba(6, 182, 212, .35);
  transition: all .15s ease;
  font-size: 16px;
  width: 100%;
  margin-top: 8px;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.05)
}

button[type="submit"]:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: .7;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.login-link a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* -- Modal -- */
/* --------------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  /* escondido por padrão */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  animation: fadeIn .25s ease;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--danger);
}

.modal-content p {
  margin-bottom: 20px;
  font-size: 15px;
}

.modal-content button {
  border: 0;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: #062028;
  font-weight: 700;
  width: 100%;
  box-shadow: 0 6px 16px rgba(6, 182, 212, .3);
  transition: transform .15s ease, filter .15s ease;
}

.modal-content button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.igm-logo {
  width: 4rem;
  height: 5rem;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #002a34;
  letter-spacing: .5px;
  margin: 0 auto 12px auto;
}
