:root{
  --card-bg: rgba(203, 203, 203, 0);
  --text: #2d2d2d;
  --muted: #5a5a5a;
  --primary: #4a7ef2;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

.login-page{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card{
  width: min(520px, 92vw);
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  padding: 28px 34px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.logos{
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.logo{
  height: 48px;
  width: auto;
  display: block;
}

.title{
  text-align: center;
  margin: 10px 0 6px;
  letter-spacing: .5px;
  font-size: 32px;
  font-weight: 800;
}
.subtitle{
  text-align: center;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.35;
}

.form{ display: grid; gap: 10px; }
.label{
  font-weight: 700;
  margin-top: 6px;
}

.form-alert{
  color: #b91c1c;
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .35);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 2px;
}

.input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.95);
  outline: none;
}
.input:focus{
  border-color: rgba(74,126,242,.75);
  box-shadow: 0 0 0 4px rgba(74,126,242,.15);
}

.btn{
  margin-top: 14px;
  width: 180px;
  justify-self: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: .8px;
  cursor: pointer;
}
.btn:hover{ filter: brightness(.95); }

.login-anim{
  opacity: 0;
  transform: translateY(18px) scale(.98);
  animation: loginEnter .8s ease-out forwards;
}

@keyframes loginEnter{
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-anim-btn{
  opacity: 0;
  transform: translateY(10px);
  animation: loginEnterBtn .6s ease-out forwards;
  animation-delay: .35s;
}

@keyframes loginEnterBtn{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .login-anim,
  .login-anim-btn{
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* === CAPTCHA === */
.captcha-container{
  margin-top: 6px;
  margin-bottom: 0;
}

.captcha-label{
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}

.captcha-wrapper{
  width: 100%;
  max-width: 240px;
  margin: 0 auto 8px;
}

.captcha-image{
  width: 100%;
  height: 80px;
  display: block;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.captcha-input{
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  border: 1px solid rgba(0,0,0,.15);
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: rgba(255,255,255,.95);
  outline: none;
}

.captcha-input:focus{
  border-color: rgba(74,126,242,.75);
  border-top-color: rgba(0,0,0,.15);
  box-shadow: 0 0 0 4px rgba(74,126,242,.15);
}

.captcha-refresh{
  display: block;
  margin: 0 auto;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: .3px;
  transition: all .2s;
}

.captcha-refresh:hover{
  background: rgba(255,255,255,.95);
  color: var(--primary);
  border-color: rgba(74,126,242,.5);
}

.captcha-error{
  color: #b91c1c;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  text-align: center;
}
