:root{
  --accent: #f7c84b;
  --accent-hover: #ffd76a;
  --bg: #0b0f17;

  --card-bg: rgba(0, 0, 0, .62);
  --card-bd: rgba(255, 255, 255, .14);

  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .66);

  --input-bg: rgba(255, 255, 255, .08);
  --input-bd: rgba(255, 255, 255, .18);
  --input-focus: rgba(247, 200, 75, .55);

  --shadow: 0 22px 70px rgba(0, 0, 0, .55);
  --radius: 18px;
}

/* base */
html, body{
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.auth-body{
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

/* imagem de fundo */
body.auth-body::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05);
  z-index: 0;
}

/* overlay */
body.auth-body::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 25%, rgba(0,0,0,.34), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.84));
  z-index: 1;
}

.auth-wrap{
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.auth-wrap .container{
  position: relative;
  z-index: 2;
}

/* card */
.auth-card{
  border-radius: var(--radius);
  border: 1px solid var(--card-bd);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 28px;
  overflow: hidden;
}

/* topo */
.auth-head{
  text-align: center;
  margin-bottom: 24px;
}

.auth-head .title{
  color: #fff;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: .2px;
}

.auth-head .subtitle{
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* formulário */
.auth-form{
  margin-top: 6px;
}

.form-label{
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* inputs */
body.auth-body .form-control{
  background: var(--input-bg) !important;
  border: 1px solid var(--input-bd) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
  padding: 11px 13px !important;
  min-height: 46px;
  box-shadow: none !important;
}

body.auth-body .form-control::placeholder{
  color: rgba(255,255,255,.45);
}

body.auth-body .form-control:focus{
  background: rgba(255,255,255,.10) !important;
  border-color: var(--input-focus) !important;
  box-shadow: 0 0 0 .18rem rgba(247,200,75,.14) !important;
}

/* autofill */
body.auth-body input:-webkit-autofill,
body.auth-body input:-webkit-autofill:hover,
body.auth-body input:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--text) !important;
  box-shadow: 0 0 0px 1000px rgba(255,255,255,.08) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* botão */
.auth-btn{
  background: var(--accent) !important;
  border: 1px solid rgba(0,0,0,.22) !important;
  color: #141414 !important;
  font-weight: 900 !important;
  border-radius: 12px !important;
  min-height: 48px;
  padding: 11px 16px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.auth-btn:hover{
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.auth-btn:active{
  transform: translateY(0);
}

/* links */
.auth-links,
.auth-actions{
  color: var(--muted);
}

.auth-links a,
.auth-actions a,
.auth-links .link{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.auth-links a:hover,
.auth-actions a:hover,
.auth-links .link:hover{
  text-decoration: underline;
  filter: brightness(1.06);
}

.auth-links .muted{
  color: rgba(255,255,255,.72);
}

/* alertas */
body.auth-body .alert{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(220,53,69,.15);
  color: rgba(255,255,255,.92);
  padding: 14px 16px;
  margin-bottom: 16px;
}

/* ajuda para listas de erro do django */
body.auth-body ul.errorlist{
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}

body.auth-body ul.errorlist li{
  font-size: .92rem;
  color: #ffb3b3;
}

/* espaçamento menor em telas pequenas */
@media (max-width: 991.98px){
  .auth-card{
    padding: 26px 22px;
  }

  .auth-head .title{
    font-size: 1.8rem;
  }
}

@media (max-width: 767.98px){
  .auth-wrap{
    align-items: center;
  }

  .auth-card{
    border-radius: 16px;
    padding: 22px 18px;
  }

  .auth-head{
    margin-bottom: 20px;
  }

  .auth-head .title{
    font-size: 1.55rem;
  }

  .auth-head .subtitle{
    font-size: .96rem;
  }

  body.auth-body .form-control{
    min-height: 44px;
    padding: 10px 12px !important;
  }

  .auth-btn{
    min-height: 46px;
  }
}

@media (max-width: 480px){
  .auth-wrap .container{
    padding-left: 14px;
    padding-right: 14px;
  }

  .auth-card{
    padding: 18px 14px;
  }

  .auth-head .title{
    font-size: 1.35rem;
  }

  .auth-head .subtitle{
    font-size: .92rem;
    line-height: 1.45;
  }
}