@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');
:root { --forest: #104b31; --green: #137447; --green-light: #e9f7ed; --ink: #19382a; --muted: #66766d; --line: #d7e4dc; --danger: #b42318; --danger-bg: #fef1f0; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; background: #f7faf8; }
.auth-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .88fr) minmax(440px, 1.12fr); }
.auth-intro {
  display: flex;
  flex-direction: column;
  padding: 42px clamp(30px, 6vw, 88px);
  color: #fff;
  background:
    linear-gradient(145deg, rgb(8 67 43 / 91%), rgb(21 102 62 / 88%)),
    url("../assets/PaterosLogo.png") right -48px bottom -44px / min(43vw, 390px) no-repeat,
    radial-gradient(circle at 18% 18%, rgb(117 204 139 / 32%), transparent 22rem),
    linear-gradient(145deg, #0b432b, #15663e);
}
.back-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: #e4f6e9; font-size: .9rem; text-decoration: none; }
.back-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.intro-content { max-width: 440px; margin: auto 0; padding: 58px 0; }
.seal { width: 74px; height: 74px; padding: 5px; border: 1px solid rgb(255 255 255 / 32%); border-radius: 50%; background: #fff; object-fit: contain; }
.auth-intro .eyebrow { margin: 30px 0 13px; color: #c4edcf; font-size: .72rem; font-weight: 700; letter-spacing: .15em; }
.auth-intro h1 { max-width: 470px; margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.45rem); line-height: 1.1; letter-spacing: -.035em; }
.intro-copy { margin: 20px 0 0; color: #e3f4e8; line-height: 1.7; }
.role-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 0; padding: 0; list-style: none; }
.role-list li { padding: 7px 12px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 999px; background: rgb(255 255 255 / 10%); font-size: .82rem; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 36px 28px; }
.auth-card { width: min(100%, 470px); }
.card-heading { margin-bottom: 28px; }
.card-heading h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 2rem; letter-spacing: -.03em; }
.card-heading p { margin: 9px 0 0; color: var(--muted); line-height: 1.55; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f5c3bd; border-radius: 10px; color: var(--danger); background: var(--danger-bg); font-size: .9rem; line-height: 1.45; }
.form-alert[hidden] { display: none; }
.form-alert.success { border-color: #b9dfc2; color: #17643a; background: #eefaf1; }
.auth-form { display: grid; gap: 18px; }
.field-group { display: grid; gap: 7px; }
.field-label { color: #314d3d; font-size: .88rem; font-weight: 700; }
.required { color: var(--danger); }
.input-wrap { position: relative; }
.input-icon { position: absolute; top: 50%; left: 15px; width: 18px; height: 18px; transform: translateY(-50%); color: #718178; }
.auth-input, .auth-select { width: 100%; min-height: 50px; padding: 13px 15px 13px 45px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); font: inherit; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.auth-select { padding-left: 15px; }
.auth-input:focus, .auth-select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgb(19 116 71 / 12%); }
.password-input { padding-right: 49px; }
.password-toggle { position: absolute; top: 50%; right: 9px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; transform: translateY(-50%); border: 0; border-radius: 7px; color: #617168; font: inherit; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--green); background: var(--green-light); }
.field-help { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: #52655a; font-size: .84rem; line-height: 1.45; }
.check-row input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green); }
.submit-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; margin-top: 2px; padding: 12px 16px; border: 0; border-radius: 10px; color: #fff; font: inherit; font-weight: 700; background: var(--green); cursor: pointer; transition: background .18s ease, transform .18s ease; }
.submit-button:hover { background: #0d5f38; transform: translateY(-1px); }
.submit-button:disabled { opacity: .66; cursor: wait; transform: none; }
.secondary-text { margin: 23px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.secondary-text a { color: var(--green); font-weight: 700; text-underline-offset: 4px; }
.approval-note { display: flex; gap: 11px; margin: 20px 0 0; padding: 13px; border-radius: 10px; color: #426053; background: #f0f8f2; font-size: .82rem; line-height: 1.5; }
.approval-note strong { color: #24523a; }
@media (max-width: 840px) { .auth-layout { grid-template-columns: 1fr; } .auth-intro { min-height: auto; padding: 27px 28px; } .intro-content { margin: 0; padding: 34px 0 4px; } .auth-intro h1 { font-size: 2.2rem; } .role-list { margin-top: 20px; } .auth-panel { align-items: flex-start; padding: 42px 24px; } }
@media (max-width: 440px) { .auth-intro, .auth-panel { padding-right: 19px; padding-left: 19px; } .name-row { grid-template-columns: 1fr; } .card-heading h2 { font-size: 1.75rem; } }
.google-auth-option { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fcf9; text-align: center; }
.google-auth-option p { margin: 0 0 10px; color: #314d3d; font-size: .84rem; font-weight: 700; }
.google-auth-option > div { display: flex; justify-content: center; }
.verification-resend { width: 100%; margin: 15px 0 0; padding: 0; border: 0; color: var(--green); background: transparent; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
