﻿@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&display=swap");

:root{
  --bg:#1D1C1C;
  --panel:#161616;
  --text:#f3f4f6;
  --muted:#a8b0bd;
  --border:rgba(255,255,255,.08);
  --input-bg:#232323;
  --input-border:rgba(255,255,255,.12);

  --accent-1:#000AD0;
  --accent-2:#0009B4;
  --accent-3:#000898;

  --shadow: 0 30px 70px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:"Sora", "Segoe UI", sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* ===== LOGIN ===== */
.auth-page{
  min-height:100vh;
  position:relative;
  overflow:hidden;
}

.auth-vignette{
  position:fixed;
  inset:0;
  background:
    radial-gradient(900px 520px at 18% 24%, rgba(28,30,38,.22), rgba(10,10,12,0) 58%),
    radial-gradient(780px 480px at 84% 16%, rgba(0,10,208,.09), rgba(0,10,208,0) 62%),
    linear-gradient(180deg, rgba(18,18,21,.96) 0%, rgba(11,11,13,.98) 100%);
  pointer-events:none;
}

.auth-wrap{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:grid;
  align-items:center;
  padding:clamp(24px, 6vw, 80px);
}

.auth-card{
  width:min(420px, 100%);
  background:
    linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    rgba(8,10,16,.55);
  border:1px solid rgba(255,255,255,.18);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:28px;
  backdrop-filter: blur(16px) saturate(1.15);
}
.auth-panels{
  position:relative;
  overflow:hidden;
}
.auth-panels--single{
  overflow:visible;
}
.auth-panel{
  width:100%;
  transition:transform .45s ease, opacity .35s ease;
}
.auth-panel--reset{
  position:absolute;
  inset:0;
  transform:translateY(16px);
  opacity:0;
  pointer-events:none;
}
.auth-page.is-reset .auth-panel--login{
  transform:translateY(-16px);
  opacity:0;
  pointer-events:none;
}
.auth-page.is-reset .auth-panel--reset{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}
.auth-panels--single .auth-panel--reset{
  position:relative;
  inset:auto;
  transform:none;
  opacity:1;
  pointer-events:auto;
}

.auth-logo{
  display:block;
  height:46px;
  width:auto;
  margin-bottom:20px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
  color:#fff;
  fill: currentColor;
}
.auth-logo .st0{ fill: currentColor; }

.auth-head{ margin-bottom:16px; }
.auth-title{
  margin:0;
  font-size:28px;
  font-weight:800;
  letter-spacing:-0.02em;
}
.title-dot{
  color:var(--accent-3);
}
.auth-sub{
  margin:8px 0 0;
  font-size:13px;
  color:var(--muted);
}

.auth-form{ display:grid; gap:14px; }

.field{ display:grid; gap:6px; }
.label{
  font-size:12px;
  font-weight:700;
  color:#d4dae5;
}

.input{
  width:100%;
  height:44px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--input-border);
  background:var(--input-bg);
  outline:none;
  font-size:12px;
  color:var(--text);
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.input::placeholder{ color:#7c8696; }
.input:focus{
  border-color:rgba(0,10,208,.6);
  box-shadow:0 0 0 3px rgba(0,10,208,.18);
  background:rgba(255,255,255,.08);
}

.input-with-icon{ position:relative; }
.input-with-icon .input{ padding-right:44px; }

.icon-btn{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.icon-btn svg{ width:18px; height:18px; fill:#c1c9d6; }

.auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#d4dae5;
  user-select:none;
}
.check input{ width:16px; height:16px; }

.msg{
  margin:0;
  min-height:16px;
  text-align:left;
  font-size:11px;
  color:#f87171;
}

.btn{
  height:44px;
  border:0;
  border-radius:12px;
  padding:0 14px;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  transition: transform .15s ease, filter .2s ease;
}
.btn.primary{
  background:#232323;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
}
.btn.primary:hover{ filter:none; background:#2a2a2a; }
.btn.primary:active{ transform:translateY(1px); }
.btn:disabled{ opacity:.7; cursor:not-allowed; }
.w100{ width:100%; }

.auth-help{
  text-align:center;
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

.link{
  color:#c7b7ff;
  text-decoration:none;
  font-weight:700;
}
.link:hover{ text-decoration:underline; }
.link.subtle{
  color:#a8b0bd;
}

@media (max-width: 720px){
  .auth-wrap{
    align-items:center;
    justify-items:center;
  }
  .auth-card{
    backdrop-filter:none;
    background:rgba(12,13,18,.9);
  }
}

/* =========================================================
   LOGIN â€” melhorias mobile (390px reference)
   ========================================================= */

@media (max-width: 480px){
  .auth-card{
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
    padding: 24px 20px;
    margin: 0 12px;
  }
  /* Inputs: touch-friendly */
  .auth-card input[type="text"],
  .auth-card input[type="email"],
  .auth-card input[type="password"]{
    min-height: 48px;
    font-size: 16px; /* Evita zoom automÃ¡tico no iOS */
    border-radius: 14px;
  }
  /* BotÃ£o principal */
  .auth-card button[type="submit"],
  .auth-card .auth-btn{
    min-height: 50px;
    font-size: 15px;
    border-radius: 14px;
  }
}

@media (max-width: 360px){
  .auth-card{
    padding: 20px 16px;
    margin: 0 8px;
    border-radius: 20px;
  }
}
