/* auth.css — one look for every page shown before sign-in: index, login, forgot-password, reset-password, splash.
   MAG2.png (landscape) on wide screens, MAG1.png (portrait) on phones. Archivo Narrow, regular weight only, no grey text. */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{min-height:100%}
body.auth{
  font-family:'Archivo Narrow',sans-serif;font-weight:400;color:#FFFFFF;
  min-height:100vh;min-height:100dvh;
  background:#021C10 url('MAG2.png') center/cover no-repeat fixed;
  display:flex;align-items:center;justify-content:flex-end;
  padding:28px 6vw;
}
body.auth *{font-family:'Archivo Narrow',sans-serif;font-weight:400}
.auth-card{
  width:100%;max-width:400px;
  background:rgba(2,28,16,.86);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:1px solid #CDA04D;border-radius:18px;
  padding:30px 28px;
  box-shadow:0 24px 60px rgba(0,0,0,.55);
  animation:authIn .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes authIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.auth-title{font-size:26px;line-height:1.15;color:#FFFFFF}
.auth-sub{font-size:15px;line-height:1.45;color:#E0BB6B;margin:6px 0 22px}
.auth-card label{display:block;font-size:13px;color:#E0BB6B;text-transform:uppercase;letter-spacing:.6px;margin-bottom:6px}
.auth-card input{
  width:100%;height:46px;background:#0A2E1D;border:1px solid #CDA04D;border-radius:10px;
  padding:0 14px;font-size:16px;color:#FFFFFF;margin-bottom:16px;outline:none;
  transition:border-color .2s,background .2s,transform .15s;
}
.auth-card input::placeholder{color:#E0BB6B}
.auth-card input:hover{background:#0E3A26}
.auth-card input:focus{border-color:#E0BB6B;background:#0E3A26}
.auth-card input:-webkit-autofill,.auth-card input:-webkit-autofill:hover,.auth-card input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px #0A2E1D inset;-webkit-text-fill-color:#FFFFFF;transition:background-color 9999s ease-in-out 0s;
}
.auth-card .hint{font-size:14px;color:#E0BB6B;margin:-8px 0 16px}
.auth-card button.primary{
  width:100%;height:48px;border:none;border-radius:10px;cursor:pointer;
  background:linear-gradient(155deg,#CDA04D,#E0BB6B);color:#021C10;font-size:17px;
  transition:transform .15s,box-shadow .2s,filter .2s;
}
.auth-card button.primary:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(205,160,77,.35)}
.auth-card button.primary:active{transform:scale(.97)}
.auth-card button.primary:disabled{background:#1C4A32;color:#FFFFFF;cursor:not-allowed;transform:none;box-shadow:none}
.auth-msg{display:none;font-size:15px;line-height:1.45;border-radius:10px;padding:11px 14px;margin-bottom:16px}
.auth-msg.err{background:#4A1414;border:1px solid #FF9B9B;color:#FFFFFF}
.auth-msg.ok{background:#0E3A26;border:1px solid #5FD98A;color:#FFFFFF}
.auth-link{display:block;text-align:center;margin-top:18px;font-size:15px;color:#E0BB6B;text-decoration:none;transition:color .2s}
.auth-link:hover{color:#FFFFFF}
.auth-wait{margin:auto;display:flex;flex-direction:column;align-items:center;gap:14px;font-size:17px;color:#FFFFFF}
.auth-wait .dots{display:flex;gap:8px}
.auth-wait .dots span{width:10px;height:10px;border-radius:50%;background:#CDA04D;animation:authDot 1s infinite ease-in-out}
.auth-wait .dots span:nth-child(2){animation-delay:.15s}.auth-wait .dots span:nth-child(3){animation-delay:.3s}
@keyframes authDot{0%,80%,100%{transform:scale(.6)}40%{transform:scale(1.15)}}

/* phones and tablets held upright: the portrait picture, the card sits low so the logo stays clear */
@media (max-width:1099px) and (orientation:portrait),(max-width:700px){
  body.auth{background-image:url('MAG1.png');background-position:center top;align-items:flex-end;justify-content:center;padding:20px 16px 28px}
  .auth-card{max-width:440px;padding:24px 20px}
  .auth-title{font-size:23px}
}
/* narrow landscape windows: wide picture, card low and centred so it does not cover the logo */
@media (min-width:701px) and (max-width:1099px) and (orientation:landscape){
  body.auth{align-items:flex-end;justify-content:center;padding:20px 16px}
}
