/* ATS theme: account entry pages (log in, register, forgotten password, reset password). Prefix ats-auth-.
   Builds on the shared ats-acc- classes in ats-account.css and the tokens from ats.css :root. */

/* page shell: no back link on these pages, so give the top some room */
.ats-auth #content{padding-top:16px}
.ats-auth>.alert:first-child{margin-top:16px}
.ats-auth>.alert+#content{padding-top:0}

/* card title + intro text */
.ats-auth .ats-auth-title{font-family:var(--head);font-size:30px;line-height:1.1;color:var(--navy);margin:0 0 6px}
.ats-auth-lead{margin:0 0 16px;color:var(--muted)}
.ats-auth-need{font-weight:600;color:var(--navy)}
/* default stylesheet.css sets input[type=text].form-control to 12px: keep 16px here (no iOS zoom) */
.ats .ats-auth .form-control{font-size:16px}
/* same file sets every label to 12px: choices and the agree box stay at 16px */
.ats-auth .radio-inline,.ats-auth .radio label,.ats-auth .checkbox label,.ats-auth .ats-acc-choice{font-size:16px}
.ats-auth .ats-acc-head .ats-auth-need{color:var(--navy)}
.ats-auth .ats-acc-head a{color:var(--blue);font-weight:600;text-decoration:underline}

/* log in: two cards side by side on wide screens, stacked on phones (Sign in first) */
.ats-auth-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch}
.ats-auth-card{display:flex;flex-direction:column;padding:24px}
.ats-auth-grid>.ats-acc-card+.ats-acc-card{margin-top:0}
.ats-auth-card>p{margin:0 0 12px}
.ats-auth-new{background:var(--tint);border-color:#C9D8EC}
.ats-auth-new .ats-auth-submit{margin-top:auto}
.ats-auth-new p:last-of-type{margin-bottom:20px}

/* single-column forms (log in, forgotten, reset) */
.ats-auth-form{display:grid;gap:16px;margin:0}
.ats-auth-form fieldset{grid-template-columns:minmax(0,1fr)}
.ats-auth-form .control-label{display:block;text-align:left;padding:0;margin:0 0 6px;font-weight:600;font-size:15px;color:var(--text)}
.ats-auth-form .ats-acc-actions{margin-top:4px}
.ats-auth-link{display:inline-flex;align-items:center;min-height:44px;margin-top:2px;font-size:15px;font-weight:600;color:var(--blue);text-decoration:underline}
.ats-auth-link:hover,.ats-auth-link:focus{color:var(--blue-dark)}
.ats-auth-submit{width:100%}
input.ats-auth-submit{font:600 16px/1 var(--body)}

/* forgotten / reset: one narrow card */
.ats-auth-narrow{max-width:560px;margin:0 auto}

/* register: captcha, agree checkbox + main button */
.ats-auth-captcha{margin-top:16px}
.ats-auth-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:20px}
.ats-auth-actions .ats-btn{min-width:200px}
.ats-acc .ats-auth-agree{flex:1 1 320px;padding:12px 16px 12px 14px;line-height:1.4;font-weight:400}
.ats-auth-agree a{color:var(--blue);text-decoration:underline}
.ats-auth-agree a b{font-weight:600}

@media (max-width:767px){
  .ats-auth-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .ats-auth-card{padding:18px}
  .ats-auth .ats-auth-title{font-size:26px}
}
@media (max-width:700px){
  .ats-auth-actions{flex-direction:column;align-items:stretch}
  .ats-auth-actions .ats-btn{width:100%;min-width:0}
  .ats-acc .ats-auth-agree{flex:none}
}
