/* =========================================================
   Vai de Peça — login.css (VERSÃO PREMIUM)
   ========================================================= */

:root{
  --primary: #125aa3;
  --primary-soft: #59a3c5;

  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15,23,42,.12);

  --shadow-strong: 0 30px 60px rgba(15,23,42,.18);
  --shadow-soft: 0 12px 28px rgba(15,23,42,.12);

  --radius-xl: 26px;
}

/* Segurança */
.login-container, .login-container * { box-sizing: border-box; }
.hidden{ display:none!important; }
html, body{ width:100%; overflow-x:hidden; }
/* =========================================================
   Header exclusivo do login (limpo e focado)
   ========================================================= */

.login-header{
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(15,23,42,.10);
}

.login-header__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.login-header__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.login-header__logo{
  height: 120px;
  width: auto;
  
}

.login-header__brandtext{
  display: grid;
  gap: 2px;
}

.login-header__title{
  font-family: "Teko", system-ui, sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 1px;
  color: #0b1220;
  font-weight: 700;
}

.login-header__subtitle{
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(15,23,42,.65);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.login-header__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-header__link{
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(15,23,42,.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-header__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  height: 40px;
  padding: 0 14px;

  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: linear-gradient(180deg, rgba(89,163,197,.16), rgba(18,90,163,.10));

  font-family: "Roboto", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #0b1220;

  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
  transition: transform .06s ease, filter .15s ease;
}

.login-header__btn:hover{ filter: brightness(1.04); }
.login-header__btn:active{ transform: translateY(1px); }

.login-header__cartdot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.18);
}

/* Mobile */
@media (max-width: 520px){
  .login-header__subtitle{ display:none; }
  .login-header__link{ display:none; }
  .login-header__title{ font-size: 26px; }
  
}

/* =========================================================
   FUNDO COM FOCO NO CARD
   ========================================================= */
.login-container{
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;

  background:
    radial-gradient(600px 400px at 50% 55%, rgba(89,163,197,.35), transparent 60%),
    radial-gradient(900px 600px at 50% 60%, rgba(18,90,163,.18), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #eef5fb 45%, #f6f7fb 100%);
}

/* =========================================================
   CARD
   ========================================================= */
.login-box{
  width: 100%;
  max-width: 460px;
  padding: 34px 30px;

  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);

  box-shadow: var(--shadow-strong);
  text-align: center;

  position: relative;
}

/* glow premium */
.login-box::after{
  content:"";
  position:absolute;
  inset:-40px;
  border-radius: inherit;
  background:
    radial-gradient(240px 160px at 50% 0%, rgba(89,163,197,.18), transparent 60%);
  pointer-events:none;
}

/* =========================================================
   LOGO + TÍTULO
   ========================================================= */
.login-box > .logo{
  font-family: "Teko", sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #000;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.login-box h2{
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 26px;
}

/* =========================================================
   FORM
   ========================================================= */
#login-form,
#register-form{
  display: grid;
  gap: 16px;
}

.form-group{
  text-align: left;
}

.form-group label{
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.form-group input{
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 16px;
  background: #fff;
}

.form-group input:focus{
  outline: none;
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(18,90,163,.14);
}

/* =========================================================
   LINK MOSTRAR SENHA
   ========================================================= */
.link-like{
  background:none;
  border:none;
  padding:0;
  margin-top:6px;
  font-size:13px;
  font-weight:700;
  color: var(--primary);
  text-decoration: underline;
  cursor:pointer;
}

/* =========================================================
   BOTÃO CTA — PROTAGONISTA
   ========================================================= */
.cta-button{
  margin-top: 6px;
  height: 52px;
  border-radius: 18px;
  border:none;

  font-size: 16px;
  font-weight: 800;
  color:#fff;
  cursor:pointer;

  background:
    linear-gradient(180deg, var(--primary-soft), var(--primary));

  box-shadow:
    0 10px 24px rgba(18,90,163,.35),
    inset 0 1px 0 rgba(255,255,255,.35);

  transition: transform .08s ease, filter .15s ease;
}

.cta-button:hover{ filter: brightness(1.05); }
.cta-button:active{ transform: translateY(1px); }

/* =========================================================
   LINKS INFERIORES
   ========================================================= */
.form-link{
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.form-link a{
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 480px){
  .login-box{
    padding: 28px 20px;
  }

  .login-box > .logo{
    font-size: 34px;
  }
}
/* =========================================================
   FEEDBACK DE MENSAGENS (Login / Cadastro / Reset)
   ========================================================= */

.form-feedback{
  margin: 14px 0 10px;
  padding: 14px 16px;
  border-radius: 14px;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;

  text-align: left;
  box-shadow: var(--shadow-soft);
}

/* SUCESSO */
.form-feedback.success{
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* ERRO */
.form-feedback.error{
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

/* INFORMATIVO */
.form-feedback.info{
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}
