
:root{
  --wd-blue:#1677ff;
  --wd-blue-dark:#0d67df;
  --wd-navy:#0a2d57;
  --wd-text:#102746;
  --wd-muted:#71829a;
  --wd-border:#dce6f0;
  --wd-page:#edf3fa;
  --wd-radius:38px;
  --wd-control-radius:12px;
}

*{box-sizing:border-box}

html,body{
  width:100%;
  min-height:100%;
  margin:0;
}

body{
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 50% 0%,#fff 0,#f7faff 40%,var(--wd-page) 100%);
  color:var(--wd-text);
}

/* ===== PÁGINA ===== */
.wd-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(20px,4vh,48px) clamp(20px,4vw,64px);
}

/* ===== CARD ===== */
.wd-login-card{
  width:min(1500px,100%);
  height:min(820px,calc(100vh - 64px));
  min-height:650px;
  display:grid;
  grid-template-columns:62% 38%;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(201,214,229,.8);
  border-radius:var(--wd-radius);
  box-shadow:
    0 28px 80px rgba(23,50,82,.12),
    0 6px 22px rgba(23,50,82,.05);
}

/* ===== SHOWROOM =====
   A própria imagem contém:
   - texto institucional
   - marcas
   - carros
   - motos
   - logo Grupo JRCA
   Portanto não inserir conteúdo HTML por cima.
*/
.wd-visual{
  position:relative;
  height:100%;
  background-image:url('../img/login-showroom.jpg');
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}

.wd-visual::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(
    90deg,
    rgba(4,18,37,.03) 0%,
    rgba(4,18,37,0) 50%,
    rgba(4,18,37,.03) 100%
  );
}

/* ===== PAINEL LOGIN ===== */
.wd-login-panel{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:52px clamp(40px,4vw,70px);
  background:#fff;
}

.wd-login-inner{
  width:100%;
  max-width:455px;
}

/* ===== MARCA ===== */
.wd-brand{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:46px;
}

.wd-mark{
  color:#1878f2;
  font-size:43px;
  line-height:1;
  font-weight:900;
}

.wd-brand-copy{
  display:flex;
  flex-direction:column;
}

.wd-brand-name{
  display:flex;
  align-items:flex-end;
  line-height:1;
}

.wd-brand-main{
  color:#0b315d;
  font-size:39px;
  font-weight:800;
  letter-spacing:-1.5px;
}

.wd-brand-auto{
  margin-left:3px;
  margin-bottom:4px;
  color:#1677ff;
  font-size:14px;
  font-weight:800;
}

.wd-brand-sub{
  margin-top:7px;
  color:#8a98aa;
  font-size:8px;
  font-weight:700;
  letter-spacing:.09em;
}

/* ===== TEXTO LOGIN ===== */
.wd-title{
  margin:0 0 8px;
  color:#0a2345;
  font-size:31px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.8px;
}

.wd-subtitle{
  margin:0 0 27px;
  color:#6f8199;
  font-size:13px;
}

/* ===== CAMPOS ===== */
.wd-form-group{
  margin-bottom:17px;
}

.wd-label{
  display:block;
  margin-bottom:8px;
  color:#0a2345;
  font-size:12px;
  font-weight:700;
}

.wd-input{
  height:54px;
  display:flex;
  align-items:center;
  overflow:hidden;
  border:1px solid var(--wd-border);
  border-radius:var(--wd-control-radius);
  background:#fff;
  transition:.18s ease;
}

.wd-input:focus-within{
  border-color:#9cc3fb;
  box-shadow:0 0 0 4px rgba(22,119,255,.08);
}

.wd-input-icon{
  width:54px;
  height:100%;
  display:grid;
  place-items:center;
  color:#7c8ea5;
  border-right:1px solid #e5ecf3;
  font-size:16px;
}

.wd-input input{
  flex:1;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#30435c;
  padding:0 15px;
  font-size:13px;
}

.wd-input input::placeholder{
  color:#8090a5;
}

.wd-input-action{
  width:48px;
  height:100%;
  border:0;
  background:transparent;
  color:#768aa3;
  cursor:pointer;
}

/* ===== OPÇÕES ===== */
.wd-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:3px 0 21px;
  font-size:11px;
}

.wd-remember{
  display:flex;
  align-items:center;
  gap:8px;
  color:#687b93;
}

.wd-remember input{
  width:15px;
  height:15px;
}

.wd-link{
  color:#0874f2;
  font-weight:700;
  text-decoration:none;
}

.wd-link:hover{text-decoration:underline}

/* ===== BOTÃO ===== */
.wd-login-button{
  width:100%;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:var(--wd-control-radius);
  background:linear-gradient(180deg,var(--wd-blue),var(--wd-blue-dark));
  color:#fff;
  font-size:14px;
  font-weight:800;
  box-shadow:0 13px 27px rgba(22,119,255,.18);
  cursor:pointer;
  transition:.16s ease;
}

.wd-login-button:hover{
  transform:translateY(-1px);
  box-shadow:0 15px 30px rgba(22,119,255,.22);
}

.wd-login-button:disabled{
  opacity:.7;
  cursor:not-allowed;
  transform:none;
}

/* ===== RODAPÉ ===== */
.wd-footer{
  margin-top:58px;
  color:#73849a;
  font-size:10px;
  line-height:1.55;
  border-top:1px solid #e6edf5;
  padding-top:18px;
}

/* ===== MODAL RECUPERAR ===== */
.wd-recover-dialog{max-width:520px}

.modal-content.wd-modal{
  border:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(11,35,67,.22);
}

.wd-modal .modal-header{
  border:0;
  padding:24px 24px 8px;
  align-items:flex-start;
}

.wd-modal .modal-body{
  padding:16px 24px;
}

.wd-modal .modal-footer{
  border:0;
  padding:14px 24px 24px;
}

.wd-modal-icon{
  width:46px;
  height:46px;
  border-radius:50%;
  background:#edf5ff;
  color:#1677ff;
  display:grid;
  place-items:center;
  font-size:20px;
  flex:0 0 auto;
}

.wd-modal-title{
  margin:0 0 4px;
  color:#0a2345;
  font-size:20px;
  font-weight:800;
}

.wd-modal-sub{
  margin:0;
  color:#6f8199;
  font-size:12px;
  line-height:1.5;
}

.wd-info{
  margin-top:12px;
  padding:12px 13px;
  border:1px solid #deedff;
  border-radius:10px;
  background:#eef6ff;
  color:#2a5d98;
  font-size:11px;
}

.wd-btn-secondary,
.wd-btn-primary{
  height:40px;
  padding:0 16px;
  border-radius:9px;
  font-size:12px;
  font-weight:700;
}

.wd-btn-secondary{
  border:1px solid #dce6f0;
  background:#fff;
  color:#32455f;
}

.wd-btn-primary{
  border:0;
  background:#1677ff;
  color:#fff;
  font-weight:800;
}

#wdToastArea{z-index:2000}

/* ===== FULL HD / ALTURA MENOR ===== */
@media (min-width:1201px) and (max-height:850px){
  .wd-page{
    padding-top:20px;
    padding-bottom:20px;
  }

  .wd-login-card{
    height:calc(100vh - 40px);
    min-height:610px;
  }

  .wd-login-panel{
    padding-top:32px;
    padding-bottom:32px;
  }

  .wd-brand{margin-bottom:29px}
  .wd-brand-main{font-size:35px}
  .wd-mark{font-size:38px}
  .wd-title{font-size:28px}
  .wd-subtitle{margin-bottom:20px}
  .wd-form-group{margin-bottom:13px}
  .wd-input{height:49px}
  .wd-login-button{height:49px}
  .wd-footer{margin-top:32px}
}

/* ===== NOTEBOOK ===== */
@media(max-width:1200px){
  body{overflow:auto}

  .wd-page{padding:24px}

  .wd-login-card{
    height:auto;
    min-height:700px;
    grid-template-columns:55% 45%;
  }

  .wd-login-panel{
    padding:40px 32px;
  }
}

/* ===== TABLET ===== */
@media(max-width:900px){
  .wd-login-card{
    max-width:650px;
    display:block;
    border-radius:28px;
  }

  .wd-visual{
    height:350px;
    border-radius:28px 28px 0 0;
    background-position:center center;
  }

  .wd-login-panel{
    height:auto;
    padding:40px 38px 48px;
  }

  .wd-login-inner{max-width:none}
}

/* ===== MOBILE ===== */
@media(max-width:600px){
  .wd-page{padding:0}

  .wd-login-card{
    min-height:100vh;
    border:0;
    border-radius:0;
    box-shadow:none;
  }

  .wd-visual{display:none}

  .wd-login-panel{
    min-height:100vh;
    padding:34px 22px;
  }

  .wd-brand-main{font-size:33px}
  .wd-brand-auto{font-size:12px}
  .wd-mark{font-size:35px}
  .wd-title{font-size:27px}
}

.wd-login-error{
  display:flex;align-items:center;gap:8px;margin-bottom:16px;padding:10px 12px;
  border:1px solid #fecdd3;border-radius:10px;background:#fff1f2;color:#b4232e;
  font-size:11px
}
.wd-link-button{border:0;background:transparent;padding:0}
