:root{
  /* Base (dark enterprise) */
  --bg-main: #0b1220;                /* fundo geral */
  --surface: #0f172a;                /* superfícies (aside) */
  --surface-2: rgba(255,255,255,.04);/* card glass */
  --border: rgba(148,163,184,.18);   /* bordas discretas */
  --border-strong: rgba(148,163,184,.28);

  --text-main: #f1f5f9;              /* texto principal */
  --text-dim: rgba(241,245,249,.72); /* texto secundário */
  --text-soft: rgba(241,245,249,.55);

  --accent: #2f81f7;                 /* azul corporativo */
  --accent-2: #22c55e;               /* verde discreto (p/ estados) */
  --accent-glow: rgba(47,129,247,.35);

  --danger: #ef4444;

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;

  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  --shadow-md: 0 14px 40px rgba(0,0,0,.40);

  --focus-ring: 0 0 0 4px rgba(47,129,247,.22);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html, body{ height:100%; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(47,129,247,.18), transparent 55%),
    radial-gradient(800px 500px at 90% 60%, rgba(34,197,94,.10), transparent 60%),
    var(--bg-main);
  color: var(--text-main);

  /* Evita “sumir” conteúdo em telas baixas */
  overflow-x: hidden;
  overflow-y: auto;
}

.wrapper{
  min-height: 100vh;
  width: 100%;
  display: flex;
}

/* =========================
   HERO (lado esquerdo)
   ========================= */
.hero{
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vw, 84px);
  background:
    linear-gradient(90deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.65) 55%, rgba(11,18,32,.35) 100%),
    /*url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&q=80") center/cover no-repeat;*/
    url("assets/rissobba.jpg") center/cover no-repeat;
}

.hero__overlay{
  position: absolute;
  inset: 0;
  /* overlay extra (refina o contraste do texto) */
  background: radial-gradient(700px 500px at 20% 30%, rgba(47,129,247,.12), transparent 60%);
  pointer-events: none;
}

.hero__content{
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1{
  margin: 18px 0 14px;
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero h1 span{
  color: var(--accent);
}

.hero p{
  color: var(--text-dim);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  max-width: 560px;
}

/* =========================
   ASIDE / AUTH (lado direito)
   ========================= */
.auth-panel{
  width: min(520px, 100%);
  background: linear-gradient(180deg, rgba(15,23,42,1) 0%, rgba(2,6,23,1) 100%);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3vw, 52px);

  /* rolagem interna quando necessário */
  overflow: auto;
}

.auth-panel__card{
  width: 100%;
  max-width: 400px;
  padding: 28px 26px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.logo{
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-bottom: 14px;

  /* dá “acabamento” sem ficar chamativo */
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}

.auth-header h2{
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.auth-header p{
  color: var(--text-dim);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* =========================
   FORM / INPUTS / BOTÕES
   ========================= */
.auth-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label{
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: .02em;
}

input{
  width: 100%;
  background: rgba(2,6,23,.55);
  border: 1px solid var(--border);
  padding: 14px 14px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

input::placeholder{
  color: rgba(241,245,249,.35);
}

input:focus{
  outline: none;
  border-color: rgba(47,129,247,.65);
  box-shadow: var(--focus-ring);
}

.error-text{
  min-height: 16px;
  color: var(--danger);
  font-size: 12px;
}

.btn-primary{
  width: 100%;
  padding: 14px 14px;
  border: 0;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;

  color: #06101f;
  background: linear-gradient(135deg, #2f81f7 0%, #6ea8ff 55%, #22c55e 140%);
  box-shadow: 0 14px 34px rgba(47,129,247,.18);
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn-primary:hover:not(:disabled){
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 18px 46px rgba(47,129,247,.22);
}

.btn-primary:active:not(:disabled){
  transform: translateY(0px);
}

.btn-primary:disabled{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(20%);
}

/* Footer do painel */
.auth-footer{
  margin-top: 14px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
}

.auth-footer a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.auth-footer a:hover{
  text-decoration: underline;
}

/* =========================
   RESPONSIVO
   ========================= */
@media (max-width: 1024px){
  .hero{ display: none; }
  .auth-panel{
    width: 100vw;
    border-left: none;
    padding: 24px;
  }
  .auth-panel__card{
    max-width: 520px;
  }
}

@media (max-width: 420px){
  .auth-panel{
    padding: 18px;
  }
  .auth-panel__card{
    padding: 22px 18px;
  }
  .logo{
    max-width: 200px;
  }
  
}