*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

:root{
  --green:#1f7a54;
  --green2:#145339;
  --green3:#0d2618;
  --green-light:#e6f4ed;
  --text:#163524;
  --muted:#66786f;
  --border:#dbe6df;
  --soft:#edf4ef;
  --soft-2:#f6faf7;

  --white:rgba(255,255,255,.96);
  --panel:rgba(251,253,252,.97);

  --shadow:0 30px 80px rgba(0,0,0,.15);
  --shadow-soft:0 12px 30px rgba(0,0,0,.06);
  --shadow-card:0 20px 50px rgba(31, 122, 84, .10);
}

html, body{
  width:100%;
  min-height:100%;
}

/* Ambient Background Animation */
@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body{
  font-family:"Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:url("img/pesobgs.jpg") center/cover no-repeat fixed;
  position:relative;
  overflow-x:hidden;
  color:var(--text);
  -webkit-font-smoothing: antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(270deg, rgba(11,23,17,.5), rgba(31,122,84,.3), rgba(11,23,17,.6)),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.08), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(255,255,255,.05), transparent 40%);
  background-size: 200% 200%;
  animation: bgShift 20s ease infinite;
  z-index:0;
}

/* Staggered Animations */
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(20px); }
  to{ opacity:1; transform:translateY(0); }
}

.box{
  width:min(1120px, 100%);
  position:relative;
  z-index:1;
  animation:fadeUp .5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stagger-1 { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.stagger-2 { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.stagger-3 { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.stagger-4 { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }

/* ===== MAIN CARD (PERFECT SIZE MATCH) ===== */
.card{
  position:relative;
  display:grid;
  grid-template-columns:340px 1fr;
  background:var(--white);
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.4);
  box-shadow:var(--shadow);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}

.card.compact{
  min-height: auto;
  max-width: 950px;
  margin-inline: auto;
}
.card.compact .left{ padding:40px 30px; }
.card.compact .right{ padding:35px 40px; }


/* ===== LEFT PANEL ===== */
.left{
  position:relative;
  background: linear-gradient(145deg, rgba(31,122,84,0.95), rgba(20,83,57,0.98));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.left::before{
  content:""; position:absolute;
  width:300px; height:300px; border-radius:50%;
  top:-100px; right:-100px;
  background:radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  filter:blur(20px); pointer-events:none;
}
.left::after{
  content:""; position:absolute;
  width:250px; height:250px; border-radius:50%;
  bottom:-80px; left:-80px;
  background:radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  filter:blur(15px); pointer-events:none;
}

.brand{
  position:relative; z-index:1; width:100%; max-width:320px;
  display:flex; flex-direction:column; align-items:center;
  text-align:center; gap:16px;
}

@keyframes subtlePulse {
    0% { box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 0 0 0 rgba(255,255,255,0.15); }
    70% { box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 0 0 15px rgba(255,255,255,0); }
    100% { box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 0 0 0 rgba(255,255,255,0); }
}

.logo{
  width:95px !important; height:95px !important;
  flex: 0 0 95px !important; 
  border-radius:50%;
  background:rgba(255,255,255,.15);
  border:2px solid rgba(255,255,255,.3);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  animation: subtlePulse 3s infinite;
  backdrop-filter: blur(5px);
}

.logo img{
  width:100%; height:100%; object-fit:cover; display:block;
}

.left h1{
  font-size:28px; line-height:1.1; letter-spacing:1px;
  font-weight:900; text-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.left p{ font-size:13.5px; line-height:1.6; opacity:.9; max-width:280px; font-weight: 500; }

/* ===== BADGES (Perfected for both Login & Signup) ===== */
.badges { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  justify-content: center; 
  margin-top: 10px; 
}

.badge {
  font-size: 10px; 
  font-weight: 800; 
  padding: 6px 14px;
  border-radius: 20px; 
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  backdrop-filter: blur(5px);
  text-transform: uppercase; 
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
  transition: all 0.2s ease;
}

.badge:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}


/* ===== RIGHT PANEL ===== */
.right{
  position:relative;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(251,253,252,1));
  display:flex; flex-direction:column; justify-content:center;
}

/* This 500px wrapper prevents input fields from getting stretched out in the large card */
.right-inner{ width:100%; max-width:500px; position:relative; z-index:1; margin: 0 auto; }

.role-label{
  display:inline-flex; margin-bottom:10px; padding:6px 14px;
  border-radius:20px; background:var(--soft); color:var(--green);
  font-size:10.5px; font-weight:800; letter-spacing:1px; text-transform: uppercase;
}

.right h2{
  color:var(--green-dark); font-size:28px; line-height:1.2;
  font-weight:900; margin-bottom:6px; letter-spacing:-0.5px;
}

.sub{ color:var(--muted); font-size:14px; line-height:1.5; margin-bottom:20px; font-weight: 500; }

/* ===== SIGNUP: 3-STEP PROGRESS TRACKER ===== */
.step-tracker {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-bottom: 25px; background: #f8faf9;
    padding: 10px; border-radius: 16px; border: 1px solid var(--border);
}
.step-item { display: flex; align-items: center; gap: 6px; opacity: 0.4; transition: 0.3s; }
.step-item.active, .step-item.completed { opacity: 1; }
.step-circle {
    width: 22px; height: 22px; border-radius: 50%;
    background: #dbe6df; color: var(--muted); display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; transition: 0.3s;
}
.step-item.active .step-circle { background: var(--green); color: white; box-shadow: 0 4px 10px rgba(31,122,84,0.3); }
.step-item.completed .step-circle { background: var(--green-dark); color: white; }
.step-text { font-size: 11.5px; font-weight: 800; color: var(--text); }
.step-connector { height: 2px; width: 15px; background: #dbe6df; border-radius: 2px; transition: 0.3s; }
.step-item.completed + .step-connector { background: var(--green); }

/* ===== FORMS & INPUTS ===== */
form{ width:100%; position: relative;}

label{
  display:block; font-size:11.5px; margin:8px 0 6px;
  color:var(--green-dark); font-weight:800; text-transform: uppercase; letter-spacing: 0.5px;
}

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-group{ margin-bottom:12px; }

input, select{
  width:100%;
  min-height:48px;
  padding:12px 16px;
  border-radius:12px; 
  border:2px solid var(--border);
  background:#f9fbf9; 
  color:var(--text); font-size:14px; font-family:inherit; font-weight: 600;
  transition:all .3s cubic-bezier(0.16, 1, 0.3, 1);
}

input::placeholder{ color:#9ab0a3; font-weight: 500; }
input:hover, select:hover{ background: #fff; border-color:#c8d6ce; }
input:focus, select:focus{
  background:#fff; 
  border-color:var(--green);
  box-shadow: 0 0 0 4px rgba(31, 122, 84, .1); 
  outline:none;
}
input[readonly]{ background:#eef3ef; color:#66786f; cursor:not-allowed; }
input[readonly]:focus{ border-color:transparent; box-shadow:none; transform:none; }

select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size:6px 6px, 6px 6px; background-repeat:no-repeat;
  padding-right:35px; cursor: pointer;
}

.password-wrap{ position:relative; }
.password-wrap input{ padding-right:45px; }
.toggle-pass{
  position:absolute; top:50%; right:8px; transform:translateY(-50%);
  width:32px; height:32px; border:none; border-radius:8px; background:transparent; color:#9ab0a3;
  cursor:pointer; display:flex; align-items:center; justify-content:center; transition:0.2s;
}
.toggle-pass:hover{ background:var(--soft); color:var(--green); }
.toggle-pass svg{ width:18px; height:18px; }

/* ===== BUTTONS ===== */
.btn-group { display: flex; gap: 10px; margin-top: 15px; }
.btn{
  width:100%; min-height:50px; padding:12px 20px; margin-top: 24px;
  border:none; border-radius:14px;
  background:linear-gradient(135deg, var(--green), var(--green2));
  color:#fff; font-size:14.5px; font-weight:800; letter-spacing:0.5px;
  cursor:pointer; transition:all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:0 8px 20px rgba(31,122,84,.25);
}

.btn:hover{ transform:translateY(-2px); box-shadow:0 12px 25px rgba(31,122,84,.35); }
.btn:active{ transform:translateY(0); box-shadow:0 6px 12px rgba(31,122,84,.2); }
.btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; box-shadow:none; }

.btn-group .btn { margin-top: 0; }

.btn-secondary { 
    background: #f0f5f2 !important; 
    color: var(--green-dark) !important;
    border: 1px solid #dbe6df !important;
    box-shadow: none !important; 
}
.btn-secondary:hover { background: #e6eee9 !important; border-color: #c8d6ce !important; }

/* ===== SIGNUP: Profile Picture Area ===== */
.profile-upload-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin: 15px 0; padding: 25px;
    background: #f8faf9; border: 2px dashed #dbe6df; border-radius: 16px;
    transition: all 0.2s ease;
}
.profile-upload-container:hover { border-color: var(--green); background: #f0f5f2; }
.profile-preview-box {
    width: 100px; height: 100px;
    border-radius: 50%; border: 3px solid var(--green);
    overflow: hidden; margin-bottom: 15px; background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(31,122,84,0.15); transition: transform 0.2s ease;
    color: var(--green);
}
.profile-upload-container:hover .profile-preview-box { transform: scale(1.05); }
.profile-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-icon { width: 35px; height: 35px; opacity: 0.5; }
.upload-label {
    font-size: 12px; font-weight: 800; color: var(--green-dark);
    cursor: pointer; display: flex; align-items: center;
    padding: 8px 16px; background: #fff; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: 0.2s; border: 1px solid var(--border);
}
.profile-upload-container:hover .upload-label { background: var(--green); color: white; border-color: transparent;}

/* ===== SIGNUP: MULTI-STEP SLIDE ANIMATIONS ===== */
.form-step { display: none; opacity: 0; }
.form-step.active { display: block; opacity: 1; }

@keyframes slideFadeOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}
@keyframes slideFadeOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px); }
}
@keyframes slideFadeInRight { 
    from { opacity: 0; transform: translateX(30px); } 
    to { opacity: 1; transform: translateX(0); } 
}
@keyframes slideFadeInLeft { 
    from { opacity: 0; transform: translateX(-30px); } 
    to { opacity: 1; transform: translateX(0); } 
}

/* ===== TEXT, ALERTS & LINKS ===== */
.small{ margin-top:12px; font-size:13px; color:var(--muted); text-align:center; font-weight: 500;}
.small a{ color:var(--green); text-decoration:none; font-weight:800; transition:0.2s; }
.small a:hover{ color:var(--green-dark); text-decoration:underline; }

.lock-box{
  background:#fdf2f0; border:1px solid #fadbd8; color:#c0392b;
  padding:12px 14px; border-radius:12px; font-size:13px; font-weight: 600;
  margin-bottom:15px; line-height:1.4; text-align: center;
}

/* Alert Notification System (Restored for Login) */
.alert-msg {
    margin-top: 15px;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
    animation: fadeUp 0.3s ease;
}
.alert-msg.error {
    color: #c0392b; background: #fdf2f0; border: 1px solid #fadbd8;
}
.alert-msg.success {
    color: #1f7a54; background: #eef3ef; border: 1px solid #dbe6df;
}


/* ========================================================================= */
/* ===== MODALS & LOGIN SPECIFIC ASSETS (RESTORED) ========================= */
/* ========================================================================= */
.modal-bg{
  display:none; position:fixed; inset:0;
  background:rgba(11,23,17,.6); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  align-items:center; justify-content:center; padding:20px; z-index:9999;
}
.modal{
  width:420px; max-width:100%; background:#fff; border-radius:24px; position:relative;
  box-shadow:0 40px 100px rgba(0,0,0,.3); animation:pop .4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  padding: 40px 35px; text-align: center;
}
@keyframes pop{
  from{ transform:translateY(20px) scale(.95); opacity: 0; }
  to{ transform:translateY(0) scale(1); opacity:1; }
}

.modal-close-btn {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: #f0f5f2; color: var(--muted);
  font-weight: bold; cursor: pointer; transition: 0.2s; display: grid; place-items: center;
}
.modal-close-btn:hover { background: #ffebee; color: #d32f2f; transform: rotate(90deg); }

.modal-icon-header {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

.modal-title { font-size: 22px; font-weight: 900; color: var(--green-dark); margin-bottom: 8px; letter-spacing: -0.5px;}
.modal-subtitle { font-size: 13.5px; color: var(--muted); font-weight: 500; line-height: 1.6; margin-bottom: 20px; }

.modal-btn{
  width:100%; border:none; border-radius:14px; padding:14px;
  background:var(--green); color:#fff; font-weight:800; font-size: 14.5px; letter-spacing: 0.5px;
  cursor:pointer; transition: 0.2s; box-shadow:0 6px 15px rgba(31,122,84,.2);
}
.modal-btn:hover { background:var(--green2); transform: translateY(-2px); box-shadow:0 8px 20px rgba(31,122,84,.3); }

/* --- LOGIN: 6-BOX OTP DESIGN --- */
.otp-container {
    display: flex; gap: 8px; justify-content: center; margin-top: 10px; margin-bottom: 10px;
}
.otp-box {
    width: 48px; height: 56px; border-radius: 12px;
    border: 2px solid var(--border); text-align: center;
    font-size: 24px; font-weight: 800; color: var(--green-dark);
    background: #f9fbf9; transition: 0.2s; padding: 0;
}
.otp-box:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,122,84,0.1); background: #fff; }

/* --- LOGIN: RESETTING ACCOUNT BADGE --- */
.reset-account-badge {
    display: flex; align-items: center; gap: 12px; background: #f8faf9;
    padding: 12px 16px; border-radius: 16px; border: 1px solid var(--border);
    margin: 15px 0 20px; text-align: left;
}
.reset-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--green);
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.reset-info { display: flex; flex-direction: column; overflow: hidden; }
.reset-label { font-size: 10px; color: var(--muted); text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }


/* Spinner */
.spinner{
  width:40px; height:40px; border-radius:50%; border:3px solid var(--soft); border-top-color:var(--green);
  animation:spin 0.7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ===== MEDIA QUERIES ===== */
@media (max-width:1024px){
  .card{ grid-template-columns:320px 1fr; }
  .card.compact .left{ padding:30px 20px; }
  .card.compact .right{ padding:30px 30px; }
  .left h1{ font-size: 24px; }
}

@media (max-width:850px){
  body{ padding:16px; align-items:flex-start; }
  .box{ margin:10px 0; }
  .card, .card.compact { grid-template-columns:1fr; border-radius:24px; max-width: 500px; margin-inline: auto;}
  .left{ min-height:180px; padding:30px 20px; border-radius: 24px 24px 0 0; }
  .left::before, .left::after{ display:none; }
  .right{ padding:25px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .step-tracker { flex-wrap: wrap; margin-bottom: 15px; padding: 12px; }
  .step-connector { display: none; }
  .logo { width: 70px !important; height: 70px !important; flex: 0 0 70px !important; }
  .otp-box { width: 42px; height: 50px; font-size: 20px; }
}

@media (max-width:480px){
  .left h1{ font-size:22px; }
  .right h2{ font-size:22px; }
  .modal { padding: 30px 20px; }
  .otp-box { width: 38px; height: 46px; }
}

@media (prefers-reduced-motion:reduce){
  *, *::before, *::after { animation:none !important; transition:none !important; }
}

/* ===== AUTH OUTCOME DIALOGS ===== */
.auth-page .modal--notice {
  overflow: hidden;
  border: 1px solid #dce9e2;
  border-radius: 22px;
  padding: 38px 36px 34px;
  box-shadow: 0 34px 90px rgba(7, 42, 27, .34);
}

.auth-page .modal--notice::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #1f7a54, #46b982);
}

.auth-page .modal--notice .notice-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(145deg, #e8f8f0, #d5f0e2);
  box-shadow: 0 12px 30px rgba(31, 122, 84, .16);
}

.auth-page .modal--notice .notice-icon svg { display: none; }
.auth-page .modal--notice .notice-icon::after {
  content: "i";
  color: #1f7a54;
  font-size: 34px;
  font-weight: 800;
  font-family: Georgia, serif;
}

.auth-page .modal--notice[data-state="success"]::before {
  background: linear-gradient(90deg, #137148, #55c68c);
}
.auth-page .modal--notice[data-state="success"] .notice-icon::after {
  content: "\2713";
  color: #15764b;
  font-family: inherit;
  font-size: 38px;
}
.auth-page .modal--notice[data-state="success"] .notice-icon {
  background: linear-gradient(145deg, #e8f9f0, #cdeedc);
  box-shadow: 0 12px 30px rgba(26, 137, 82, .2), inset 0 0 0 1px rgba(31, 122, 84, .12);
}

.auth-page .modal--notice[data-state="error"]::before {
  background: linear-gradient(90deg, #b93636, #e86c62);
}
.auth-page .modal--notice[data-state="error"] .notice-icon,
.auth-page .modal--notice[data-state="restricted"] .notice-icon {
  background: linear-gradient(145deg, #fff2f0, #ffe0dc);
  box-shadow: 0 12px 30px rgba(183, 54, 54, .16), inset 0 0 0 1px rgba(183, 54, 54, .1);
}
.auth-page .modal--notice[data-state="error"] .notice-icon::after {
  content: "!";
  color: #bd3e3e;
  font-family: inherit;
  font-size: 38px;
}

.auth-page .modal--notice[data-state="restricted"]::before {
  background: linear-gradient(90deg, #9e2f2f, #dc5b50);
}
.auth-page .modal--notice[data-state="restricted"] .notice-icon::after {
  content: "\1F512";
  color: #ad3737;
  font-family: "Segoe UI Emoji", sans-serif;
  font-size: 31px;
}

.auth-page .modal--notice[data-state="error"] .modal-btn,
.auth-page .modal--notice[data-state="restricted"] .modal-btn {
  border-color: #bd3e3e;
  background: #bd3e3e;
  box-shadow: 0 8px 20px rgba(183, 54, 54, .2);
}
.auth-page .modal--notice[data-state="error"] .modal-btn:hover,
.auth-page .modal--notice[data-state="restricted"] .modal-btn:hover {
  border-color: #942d2d;
  background: #942d2d;
}

.auth-page .modal--notice .modal-title { font-size: 23px; }
.auth-page .modal--notice #modalText { max-width: 340px; margin-inline: auto; }

@media (max-width: 480px) {
  .auth-page .modal--notice { padding: 34px 22px 26px; border-radius: 18px; }
  .auth-page .modal--notice .notice-icon { width: 68px; height: 68px; border-radius: 21px; }
}

/* ===== AUTH EXPERIENCE POLISH ===== */
:root {
  --green: #18794e;
  --green2: #11623e;
  --green3: #0b3523;
  --green-dark: #103b29;
  --green-light: #e9f5ef;
  --gold: #d2a73d;
  --gold-soft: #fff7df;
  --text: #18372a;
  --muted: #64776e;
  --border: #d7e3dc;
  --soft: #eef5f1;
  --soft-2: #f7faf8;
  --danger: #c63c3c;
  --danger-soft: #fff0f0;
  --white: #ffffff;
  --panel: #ffffff;
  --shadow: 0 24px 70px rgba(7, 35, 23, .22);
  --shadow-soft: 0 10px 28px rgba(7, 35, 23, .10);
  --shadow-card: 0 16px 40px rgba(7, 35, 23, .12);
}

html {
  background: #f7fbf9;
}

body.auth-page {
  min-height: 100dvh;
  padding: 28px;
  background: url("img/pesobgs.jpg") center / cover no-repeat fixed;
  color: var(--text);
  overflow-x: hidden;
}

body.auth-page::before {
  background: rgba(8, 35, 26, .58);
  animation: none;
}

body.auth-page.modal-open {
  overflow: hidden;
}

.auth-page .box {
  width: min(1080px, 100%);
  min-width: 0;
  max-width: 100%;
  animation: authCardIn .55s cubic-bezier(.2, .75, .25, 1) both;
}

.auth-page .card,
.auth-page .card.compact {
  grid-template-columns: 360px minmax(0, 1fr);
  min-width: 0;
  max-width: 1080px;
  min-height: 620px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-signup .card,
.auth-signup .card.compact {
  min-height: 700px;
}

.auth-page .left {
  padding: 48px 38px;
  background: #145b40;
  border-right: 4px solid var(--green);
}

.auth-page .left::before,
.auth-page .left::after {
  content: none;
}

.auth-page .brand {
  max-width: 290px;
  gap: 18px;
}

.auth-page .logo {
  width: 104px !important;
  height: 104px !important;
  flex-basis: 104px !important;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .58);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(4, 27, 18, .28);
  animation: logoSettle .6s cubic-bezier(.2, .75, .25, 1) .12s both;
}

.auth-page .left h1 {
  margin: 2px 0 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-shadow: none;
}

.auth-page .left p {
  max-width: 280px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 500;
}

.auth-page .badges {
  gap: 7px;
  margin-top: 8px;
}

.auth-page .badge {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  background: rgba(4, 35, 23, .20);
  box-shadow: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-page .badge:hover {
  background: rgba(255, 255, 255, .14);
  transform: none;
}

.auth-page .right,
.auth-page .card.compact .right {
  padding: 48px 56px;
  background: #ffffff;
}

.auth-page .right-inner {
  max-width: 540px;
  min-width: 0;
}

.auth-page .role-label {
  margin: 0 0 12px !important;
  padding: 6px 10px;
  border-left: 3px solid var(--green);
  border-radius: 4px;
  background: var(--soft);
  color: var(--green2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-page .right h2 {
  margin-bottom: 7px;
  color: var(--green3);
  font-size: 29px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.auth-page .sub {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13.5px;
}

.auth-page label {
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-page .form-group {
  margin-bottom: 16px;
}

.auth-page .form-row {
  gap: 14px;
}

.auth-page input,
.auth-page select {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #fbfdfc;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(12, 54, 37, .02);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.auth-page input:hover,
.auth-page select:hover {
  border-color: #aac8b8;
  background-color: #ffffff;
}

.auth-page input:focus,
.auth-page select:focus {
  border-color: var(--green);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(24, 121, 78, .12);
}

.auth-page input:focus-visible,
.auth-page select:focus-visible,
.auth-page button:focus-visible,
.auth-page a:focus-visible {
  outline: 3px solid rgba(210, 167, 61, .58);
  outline-offset: 2px;
}

.auth-page input[readonly] {
  border-color: #e0e8e3;
  background: #f1f5f2;
}

.auth-page .password-wrap input {
  padding-right: 48px;
}

.auth-page .toggle-pass {
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.auth-page .toggle-pass:hover {
  background: var(--soft);
  color: var(--green2);
}

.auth-page .btn,
.auth-page .modal-btn {
  min-height: 50px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(17, 98, 62, .18);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-page .btn {
  margin-top: 20px;
}

.auth-page .btn:hover,
.auth-page .modal-btn:hover {
  border-color: var(--green2);
  background: var(--green2);
  box-shadow: 0 11px 22px rgba(17, 98, 62, .24);
  transform: translateY(-1px);
}

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

.auth-page .btn-secondary {
  border-color: var(--border) !important;
  background: #ffffff !important;
  color: var(--green-dark) !important;
}

.auth-page .btn-secondary:hover {
  border-color: #aac8b8 !important;
  background: var(--soft-2) !important;
}

.auth-page .small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.auth-page .small a {
  color: var(--green2);
  font-weight: 700;
  text-underline-offset: 3px;
}

.auth-page .small a:hover {
  color: var(--green3);
}

.auth-page .lock-box,
.auth-page .alert-msg {
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: left;
}

.auth-page .lock-box,
.auth-page .alert-msg.error {
  border: 1px solid #efc3c3;
  border-left: 4px solid var(--danger);
  background: var(--danger-soft);
  color: #992f2f;
}

.auth-page .alert-msg.success {
  border: 1px solid #bfddcd;
  border-left: 4px solid var(--green);
  background: var(--green-light);
  color: var(--green2);
}

/* Signup progress */
.auth-page .step-tracker {
  display: grid;
  grid-template-columns: auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--soft-2);
}

.auth-page .step-item {
  gap: 7px;
  opacity: .55;
}

.auth-page .step-circle {
  width: 26px;
  height: 26px;
  border: 1px solid #cbd9d1;
  background: #ffffff;
  font-size: 11px;
}

.auth-page .step-item.active .step-circle,
.auth-page .step-item.completed .step-circle {
  border-color: var(--green);
  background: var(--green);
  box-shadow: none;
}

.auth-page .step-text {
  font-size: 10.5px;
  letter-spacing: 0;
}

.auth-page .step-connector {
  width: 100%;
  background: #d7e3dc;
}

.auth-page .profile-upload-container {
  margin: 16px 0;
  padding: 24px;
  border: 1px dashed #9fc4b1;
  border-radius: 8px;
  background: var(--soft-2);
}

.auth-page .profile-upload-container:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.auth-page .profile-preview-box {
  border: 2px solid var(--green);
  box-shadow: 0 8px 20px rgba(17, 98, 62, .14);
}

.auth-page .upload-label {
  border-radius: 6px;
  box-shadow: none;
}

/* Modal, flash, and reset flow */
.auth-page .modal-bg {
  padding: 20px;
  background: rgba(7, 27, 20, .68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: modalBackdropIn .18s ease both;
}

.auth-page .modal {
  width: min(430px, 100%);
  max-height: calc(100dvh - 40px);
  padding: 34px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(4, 25, 17, .34);
  animation: modalPanelIn .28s cubic-bezier(.2, .75, .25, 1) both;
}

.auth-page .modal--loading {
  width: min(380px, 100%);
  padding: 42px 34px !important;
}

.auth-page .modal-close-btn {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.auth-page .modal-close-btn:hover {
  border-color: #efc3c3;
  background: var(--danger-soft);
  color: var(--danger);
  transform: none;
}

.auth-page .modal-icon-header {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid #cce3d7;
  background: var(--green-light);
}

.auth-page .modal-icon-header[style] {
  border-color: #ead79f;
  background: var(--gold-soft) !important;
  color: #a4770b !important;
}

.auth-page .modal-title {
  margin-bottom: 8px;
  color: var(--green3);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-page .modal-subtitle,
.auth-page #modalText {
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.65;
}

.auth-page #modalText {
  margin-bottom: 22px !important;
}

.auth-page .modal form {
  margin-top: 18px !important;
}

.auth-page .modal-btn {
  padding: 12px 16px;
}

.auth-page .otp-container {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0 8px;
}

.auth-page .otp-box {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0;
  border-width: 1px;
  border-radius: 7px;
  font-size: 21px;
}

.auth-page .reset-account-badge {
  padding: 12px 14px;
  border-radius: 7px;
  background: var(--soft-2);
}

.auth-page .reset-avatar {
  background: var(--green);
}

.auth-page .reset-label {
  letter-spacing: 0;
}

.auth-page .spinner {
  width: 42px;
  height: 42px;
  border-color: #dbe8e1;
  border-top-color: var(--green);
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logoSettle {
  from { opacity: 0; transform: translateY(-8px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPanelIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  body.auth-page {
    align-items: flex-start;
    padding: 18px;
  }

  .auth-page .box {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .auth-page .card,
  .auth-page .card.compact {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-width: 620px;
    min-height: 0;
    border-radius: 8px;
  }

  .auth-page .left,
  .auth-page .card.compact .left {
    min-height: 0;
    padding: 24px 28px;
    border-right: 0;
    border-bottom: 4px solid var(--green);
    border-radius: 0;
  }

  .auth-page .brand {
    max-width: none;
    min-width: 0;
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-areas: "logo title" "logo copy";
    gap: 3px 16px;
    text-align: left;
  }

  .auth-page .logo {
    grid-area: logo;
    width: 64px !important;
    height: 64px !important;
    flex-basis: 64px !important;
  }

  .auth-page .left h1 {
    grid-area: title;
    align-self: end;
    font-size: 23px;
  }

  .auth-page .left p {
    grid-area: copy;
    min-width: 0;
    max-width: 100%;
    font-size: 11.5px;
    line-height: 1.5;
    overflow-wrap: break-word;
  }

  .auth-page .badges {
    display: none;
  }

  .auth-page .right,
  .auth-page .card.compact .right {
    min-width: 0;
    padding: 34px;
  }
}

@media (max-width: 560px) {
  body.auth-page {
    display: block;
    padding: 0;
    background: #ffffff;
  }

  body.auth-page::before {
    content: none;
  }

  .auth-page .card,
  .auth-page .card.compact {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-page .left,
  .auth-page .card.compact .left {
    width: 100vw;
    max-width: 100vw;
    padding: 20px;
  }

  .auth-page .brand {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .auth-page .right,
  .auth-page .card.compact .right {
    width: 100vw;
    max-width: 100vw;
    justify-content: flex-start;
    padding: 28px 20px 34px;
  }

  .auth-page .right-inner {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .auth-page .right h2 {
    font-size: 24px;
  }

  .auth-page .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-page .step-tracker {
    grid-template-columns: minmax(52px, auto) minmax(12px, 1fr) minmax(52px, auto) minmax(12px, 1fr) minmax(52px, auto);
    gap: 6px;
    padding: 11px 10px;
  }

  .auth-page .step-item {
    min-width: 0;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
  }

  .auth-page .step-text {
    min-width: 0;
    width: 100%;
    font-size: 9px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .auth-page .step-connector {
    display: block;
    min-width: 12px;
    margin-top: 13px;
  }

  .auth-page .btn-group {
    gap: 8px;
  }

  .auth-page .modal-bg {
    align-items: flex-end;
    padding: 12px;
  }

  .auth-page .modal {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 30px 20px 22px;
  }

  .auth-page .modal--loading {
    padding: 36px 22px !important;
  }

  .auth-page .otp-container {
    gap: 5px;
  }

  .auth-page .otp-box {
    height: 48px;
    font-size: 18px;
  }
}

.auth-page .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.auth-page .auth-divider::before,
.auth-page .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.auth-page .google-signin {
  width: 100%;
  min-height: 44px;
  text-align: center;
}

.auth-page .google-signin--signup {
  margin-top: 14px;
}

.auth-page .google-button-host {
  display: flex;
  min-height: 44px;
  justify-content: center;
  transition: opacity .2s ease;
}

.auth-page .google-button-host > div {
  max-width: 100% !important;
}

.auth-page .google-signin.is-processing .google-button-host {
  opacity: .5;
  pointer-events: none;
}

.auth-page .google-auth-message {
  min-height: 18px;
  margin-top: 7px;
  color: #8a3d32;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.auth-page .google-verified-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid #c7e2d3;
  border-radius: 10px;
  background: #f1f8f4;
  color: var(--green2);
}

.auth-page .google-verified-banner > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.auth-page .google-verified-banner small {
  overflow: hidden;
  color: var(--muted);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-page .google-verified-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.auth-page .google-security-note {
  margin: 2px 0 16px;
  padding: 11px 13px;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: var(--soft-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (min-width: 901px) {
  .auth-login .box,
  .auth-signup .box {
    width: min(980px, 100%);
  }

  .auth-login .card,
  .auth-login .card.compact,
  .auth-signup .card,
  .auth-signup .card.compact {
    grid-template-columns: 310px minmax(0, 1fr);
    max-width: 980px;
    min-height: 560px;
  }

  .auth-login .left,
  .auth-login .card.compact .left,
  .auth-signup .left,
  .auth-signup .card.compact .left {
    padding: 34px 28px;
  }

  .auth-login .brand,
  .auth-signup .brand {
    gap: 13px;
  }

  .auth-login .logo,
  .auth-signup .logo {
    width: 88px !important;
    height: 88px !important;
    flex-basis: 88px !important;
  }

  .auth-login .left h1,
  .auth-signup .left h1 {
    font-size: 27px;
  }

  .auth-login .left p,
  .auth-signup .left p {
    font-size: 12px;
    line-height: 1.6;
  }

  .auth-login .right,
  .auth-login .card.compact .right {
    padding: 36px 48px;
  }

  .auth-signup .right,
  .auth-signup .card.compact .right {
    padding: 24px 40px;
  }

  .auth-signup .right h2 {
    margin-bottom: 4px;
    font-size: 26px;
  }

  .auth-signup .role-label {
    margin-bottom: 8px !important;
  }

  .auth-signup .step-tracker {
    margin: 10px 0 14px;
    padding: 8px 12px;
  }

  .auth-signup .step-circle {
    width: 24px;
    height: 24px;
  }

  .auth-signup .form-row {
    gap: 12px;
  }

  .auth-signup .form-group {
    margin-bottom: 8px;
  }

  .auth-signup label {
    margin-bottom: 4px;
  }

  .auth-signup input,
  .auth-signup select {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .auth-signup .btn {
    min-height: 46px;
    margin-top: 12px;
  }

  .auth-signup .small {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Keep authentication branding and actions steady and distraction-free. */
.auth-page .logo,
.auth-page .logo:hover {
  animation: none !important;
  transform: none !important;
  transition: none !important;
  will-change: auto;
}

.auth-page .logo::after,
.auth-page .btn::after,
.auth-page .modal-btn::after {
  display: none !important;
  animation: none !important;
}

.auth-page .btn,
.auth-page .modal-btn,
.auth-page .btn:hover,
.auth-page .btn:active,
.auth-page .modal-btn:hover,
.auth-page .modal-btn:active {
  transform: none !important;
  transition: none !important;
}

/* Auth pages change instantly. Loading indicators live outside .box and keep
   their functional animation while decorative/page-transition motion is off. */
body.auth-page,
body.auth-page::before,
.auth-page .box,
.auth-page .box *,
.auth-page .box::before,
.auth-page .box::after,
.auth-page .box *::before,
.auth-page .box *::after,
.auth-page .modal-bg:not(#loadingBg),
.auth-page .modal-bg:not(#loadingBg) .modal {
  animation: none !important;
  transition: none !important;
}

body.auth-page::after {
  content: none !important;
  display: none !important;
}

body.auth-page.auth-page-leaving .box {
  transform: none !important;
}

/* Auth context and Google access alignment */
.auth-page .auth-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0 0 20px;
}

.auth-page .auth-context-bar .auth-return {
  min-height: 34px;
  margin: 0;
  padding: 7px 11px 7px 8px;
  border: 1px solid #d8e5dd;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: #526a5e;
  box-shadow: 0 4px 12px rgba(17, 77, 51, .045);
}

.auth-page .auth-context-bar .auth-return:hover {
  border-color: #a9cdb9;
  background: #f3faf6;
  color: var(--green2);
  box-shadow: 0 7px 16px rgba(17, 77, 51, .08);
  transform: translateX(-2px);
}

.auth-page .auth-context-bar .role-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  margin: 0 !important;
  padding: 7px 12px;
  border: 1px solid #cde4d7;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf8f2, #f8fbf9);
  box-shadow: 0 4px 12px rgba(17, 77, 51, .035);
  line-height: 1;
  white-space: nowrap;
}

.auth-page .google-signin {
  width: min(460px, 100%);
  max-width: 460px;
  margin-inline: auto;
  padding: 13px 14px 11px;
  border-color: #d3e4da;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(214, 238, 225, .42), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8fcfa);
  box-shadow: 0 10px 25px rgba(18, 75, 50, .075);
}

.auth-page .google-button-host {
  width: min(400px, 100%);
  max-width: 400px;
  margin-inline: auto;
}

.auth-page .google-button-host > div {
  width: 100% !important;
}

@media (max-width: 560px) {
  .auth-page .auth-context-bar {
    gap: 8px;
    margin-bottom: 17px;
  }

  .auth-page .auth-context-bar .auth-return,
  .auth-page .auth-context-bar .role-label {
    min-height: 32px;
    padding-block: 6px;
    font-size: 9px;
  }

  .auth-page .auth-context-bar .auth-return {
    padding-inline: 7px 9px;
  }

  .auth-page .auth-context-bar .role-label {
    min-width: 0;
    padding-inline: 9px;
    white-space: normal;
    text-align: center;
  }

  .auth-page .google-signin {
    padding: 9px 8px 8px;
    border-radius: 10px;
  }

}

@media (max-width: 370px) {
  .auth-page .auth-context-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-page .auth-context-bar .auth-return,
  .auth-page .auth-context-bar .role-label {
    justify-content: center;
    width: 100%;
  }
}

/* Signup tracker: one continuous rail keeps all three steps aligned. */
.auth-signup .step-tracker {
  --tracker-pad-y: 14px;
  --tracker-circle: 26px;
  --tracker-radius: 13px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-block: var(--tracker-pad-y);
}

.auth-signup .step-tracker::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(var(--tracker-pad-y) + var(--tracker-radius) - 1px);
  right: 16.666%;
  left: 16.666%;
  height: 2px;
  border-radius: 2px;
  background: #d7e3dc;
}

.auth-signup .step-tracker:has(#tracker2.active)::before {
  background: linear-gradient(to right, var(--green) 0 50%, #d7e3dc 50% 100%);
}

.auth-signup .step-tracker:has(#tracker3.active)::before,
.auth-signup .step-tracker:has(#tracker3.completed)::before {
  background: var(--green);
}

.auth-signup .step-item {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  text-align: center;
  opacity: 1;
}

.auth-signup .step-circle {
  position: relative;
  z-index: 2;
  width: var(--tracker-circle);
  height: var(--tracker-circle);
  flex: 0 0 var(--tracker-circle);
  background: #fff;
  box-shadow: 0 0 0 5px var(--soft-2);
}

.auth-signup .step-item:not(.active):not(.completed) .step-circle {
  color: #718079;
  border-color: #cbd9d1;
}

.auth-signup .step-item:not(.active):not(.completed) .step-text {
  color: #718079;
}

.auth-signup .step-item.active .step-circle,
.auth-signup .step-item.completed .step-circle {
  box-shadow: 0 0 0 5px var(--soft-2);
}

.auth-signup .step-text {
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
}

.auth-signup .step-connector {
  display: none;
}

@media (max-width: 560px) {
  .auth-signup .step-tracker {
    --tracker-pad-y: 11px;
    margin: 14px 0 18px;
    padding-inline: 6px;
  }

  .auth-signup .step-text {
    font-size: 9px;
    line-height: 1.25;
  }
}

@media (min-width: 901px) {
  .auth-signup .step-tracker {
    --tracker-pad-y: 8px;
    --tracker-circle: 24px;
    --tracker-radius: 12px;
  }
}
.privacy-acknowledgment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 77, 56, 0.18);
  border-radius: 10px;
  background: #f7fbf8;
  color: #405248;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
}
.privacy-acknowledgment input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; accent-color: #1f6a49; }
.privacy-acknowledgment a { color: #17633f; font-weight: 700; text-decoration: underline; }
.privacy-notice-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #17633f;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

#privacyNoticeBg { z-index: 1200; }
#privacyNoticeBg .signup-privacy-modal {
  display: flex;
  flex-direction: column;
  width: min(860px, calc(100vw - 32px));
  max-width: 860px;
  height: min(760px, calc(100dvh - 32px));
  padding: 28px 30px 22px;
  overflow: hidden;
  text-align: left;
}
.signup-privacy-modal .modal-title { flex: 0 0 auto; margin: 0 48px 4px 0; }
.signup-privacy-intro { flex: 0 0 auto; margin: 0 48px 16px 0; color: var(--muted); font-size: 14px; }
.signup-privacy-modal iframe {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 1px solid #dbe6df;
  border-radius: 12px;
  background: #fff;
}
.signup-privacy-modal .signup-privacy-return { flex: 0 0 auto; width: auto; align-self: flex-end; margin-top: 16px; }

@media (max-width: 600px) {
  #privacyNoticeBg .signup-privacy-modal { width: calc(100vw - 20px); height: calc(100dvh - 20px); padding: 22px 18px 18px; }
}

.auth-page .notice-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border: 1px solid rgba(31, 122, 84, .2);
  border-radius: 20px;
  background: linear-gradient(145deg, #f2fff8, #d8f3e4);
  color: var(--green);
  box-shadow: 0 12px 28px rgba(22, 108, 67, .14);
}

.auth-page .notice-icon svg {
  width: 42px;
  height: 42px;
}

.auth-page .age-notice-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(31, 122, 84, .18);
  border-radius: 20px;
  background: linear-gradient(145deg, #f1fff7, #d8f3e4);
  box-shadow: 0 12px 28px rgba(22, 108, 67, .14);
}

.auth-page .age-notice-icon svg {
  width: 42px;
  height: 42px;
}

.auth-page .age-notice-modal .modal-subtitle {
  margin-bottom: 22px;
}

/* ===== AUTH UI/UX FINISHING LAYER ===== */
body.auth-page {
  background-position: center;
  background-size: cover;
}

body.auth-page::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(102, 214, 157, .18), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(210, 167, 61, .13), transparent 25%),
    linear-gradient(125deg, rgba(5, 31, 22, .78), rgba(13, 75, 50, .55) 50%, rgba(5, 31, 22, .74));
  background-size: 120% 120%, 115% 115%, 100% 100%;
  animation: authBackdropDrift 16s ease-in-out infinite alternate;
}

.auth-page .box {
  isolation: isolate;
  transition: transform .23s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

body.auth-page::after {
  content: "";
  position: fixed;
  z-index: 2147482000;
  inset: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(31, 122, 84, .075), transparent 31%),
    #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s ease, visibility 0s linear .23s;
}

body.auth-page.auth-page-leaving {
  cursor: progress;
}

body.auth-page.auth-page-leaving .box {
  animation: none;
  transform: translateY(-4px) scale(.994);
}

body.auth-page.auth-page-leaving::after {
  visibility: visible;
  opacity: 1;
  transition: opacity .23s ease;
}

.auth-page .box::before,
.auth-page .box::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  pointer-events: none;
  animation: authOrbit 10s ease-in-out infinite alternate;
}

.auth-page .box::before {
  top: -55px;
  left: -70px;
  box-shadow: inset 0 0 0 26px rgba(255, 255, 255, .025);
}

.auth-page .box::after {
  right: -60px;
  bottom: -50px;
  width: 135px;
  height: 135px;
  border-color: rgba(226, 190, 94, .24);
  animation-delay: -4s;
}

.auth-page .card,
.auth-page .card.compact {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .78);
  box-shadow: 0 30px 85px rgba(3, 28, 18, .28), 0 2px 0 rgba(255, 255, 255, .6) inset;
}

.auth-page .card::before {
  content: "";
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f5d3d 0 34%, #25875d 34% 62%, #a8d4bd 62% 100%);
}

.auth-page .left {
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(11, 67, 44, .94), rgba(14, 89, 59, .98)),
    #145b40;
}

.auth-page .left::before,
.auth-page .left::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.auth-page .left::before {
  width: 310px;
  height: 310px;
  top: -145px;
  right: -145px;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, .025),
    0 0 0 72px rgba(255, 255, 255, .018);
  animation: authRingBreathe 8s ease-in-out infinite;
}

.auth-page .left::after {
  width: 220px;
  height: 220px;
  bottom: -115px;
  left: -105px;
  background: radial-gradient(circle, rgba(226, 190, 94, .16), transparent 68%);
}

.auth-page .brand::before {
  content: "PESO VINZONS • OFFICIAL SERVICE PORTAL";
  order: -1;
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.5;
}

.auth-page .logo {
  position: relative;
  box-shadow:
    0 16px 36px rgba(2, 24, 15, .32),
    0 0 0 7px rgba(255, 255, 255, .08),
    0 0 0 8px rgba(226, 190, 94, .18);
  transition: transform .35s cubic-bezier(.2, .75, .25, 1), box-shadow .35s ease;
}

.auth-page .logo:hover {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow:
    0 20px 42px rgba(2, 24, 15, .36),
    0 0 0 8px rgba(255, 255, 255, .09),
    0 0 0 9px rgba(226, 190, 94, .22);
}

.auth-page .right,
.auth-page .card.compact .right {
  position: relative;
  background:
    radial-gradient(circle at 100% 0, rgba(232, 246, 238, .9), transparent 31%),
    linear-gradient(180deg, #fff 0%, #fcfefd 100%);
}

.auth-page .right::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 30px;
  width: 62px;
  height: 62px;
  opacity: .24;
  background-image: radial-gradient(circle, #6ca98a 1.25px, transparent 1.5px);
  background-size: 10px 10px;
  pointer-events: none;
}

.auth-page .auth-return {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.auth-page .auth-return svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-page .auth-return:hover {
  color: var(--green);
  transform: translateX(-3px);
}

.auth-page .role-label {
  position: relative;
  overflow: hidden;
  padding-left: 13px;
  border-left: 0;
  background: linear-gradient(90deg, #e8f5ee, #f7fbf8);
}

.auth-page .role-label::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #28a46b;
  box-shadow: 0 0 0 4px rgba(40, 164, 107, .12);
}

.auth-page .right h2 {
  letter-spacing: -.025em;
}

.auth-login .right h2,
.auth-signup .right h2,
.auth-login .sub {
  text-align: center;
}

.auth-page .form-group {
  position: relative;
}

.auth-page .form-group label {
  transition: color .18s ease;
}

.auth-page .form-group:focus-within label {
  color: var(--green);
}

.auth-page input,
.auth-page select {
  border-color: #d6e3db;
  background-color: rgba(250, 253, 251, .92);
  box-shadow: 0 1px 0 rgba(16, 73, 48, .025);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}

.auth-page input:focus,
.auth-page select:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(24, 121, 78, .11), 0 9px 22px rgba(17, 98, 62, .07);
}

.auth-page .field-hint {
  display: block;
  margin-top: 6px;
  color: #74857c;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.45;
}

.auth-page .btn,
.auth-page .modal-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #1d8558, #11623e);
  box-shadow: 0 10px 24px rgba(17, 98, 62, .22);
}

.auth-page .btn::after,
.auth-page .modal-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -45%;
  left: -35%;
  width: 24%;
  height: 190%;
  background: rgba(255, 255, 255, .22);
  transform: rotate(22deg) translateX(-220%);
  transition: transform .55s ease;
}

.auth-page .btn:hover::after,
.auth-page .modal-btn:hover::after {
  transform: rotate(22deg) translateX(620%);
}

.auth-page .auth-divider {
  margin: 17px 0 13px;
}

.auth-page .auth-divider span {
  padding: 0 4px;
  white-space: nowrap;
}

.auth-page .google-signin {
  width: min(430px, 100%);
  max-width: 430px;
  margin-inline: auto;
  padding: 11px 12px 9px;
  border: 1px solid #d5e5dc;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(223, 241, 231, .62), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 252, 250, .96));
  box-shadow: 0 10px 24px rgba(18, 75, 50, .065);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-page .google-signin:hover {
  border-color: #b9d6c6;
  box-shadow: 0 12px 27px rgba(18, 75, 50, .09);
  transform: translateY(-1px);
}

.auth-page .google-signin .google-button-host {
  width: min(400px, 100%);
  max-width: 400px;
  margin-inline: auto;
  padding: 0;
  overflow: visible;
}

.auth-page .google-signin .google-button-host > div {
  display: block;
  max-width: 100% !important;
  margin-inline: auto !important;
}


.auth-page .modal--error .modal-title {
  color: #8f302d;
}

.auth-page .modal--error .notice-icon {
  border-color: #efd0cd;
  background: #fff4f2;
  color: #b33e38;
}

.auth-page .modal--error .notice-icon svg circle,
.auth-page .modal--error .notice-icon svg path {
  stroke: #b33e38 !important;
}

.auth-page .modal--error .notice-icon svg circle:last-child {
  fill: #b33e38 !important;
  stroke: none !important;
}

.auth-page .google-signin--signup {
  margin-top: 12px;
}

.auth-page .google-auth-message:empty {
  display: none;
}

.auth-page .google-auth-message:not(:empty) {
  margin: 8px 4px 1px;
}

.auth-signup .step-tracker {
  overflow: hidden;
  border-color: #d4e4db;
  background:
    linear-gradient(90deg, rgba(236, 247, 241, .84), rgba(250, 252, 251, .94));
}

.auth-signup .step-tracker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent);
  transform: skewX(-18deg);
  animation: authTrackerSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.auth-signup .step-item.active .step-circle {
  animation: authStepPulse 2.2s ease-in-out infinite;
}

.auth-signup .form-step.active {
  will-change: transform, opacity;
}

.auth-page .profile-upload-container {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(186, 225, 204, .25), transparent 30%),
    #f8fbf9;
}

.auth-page .profile-upload-container::after {
  content: "SECURE IMAGE UPLOAD";
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: rgba(35, 92, 64, .38);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.auth-page .privacy-acknowledgment {
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.auth-page .privacy-acknowledgment:focus-within,
.auth-page .privacy-acknowledgment:hover {
  border-color: #a9cdb9;
  background: #f1f8f4;
  box-shadow: 0 6px 16px rgba(17, 98, 62, .055);
}

@keyframes authBackdropDrift {
  from { background-position: 0% 0%, 100% 100%, center; }
  to { background-position: 8% 7%, 92% 93%, center; }
}

@keyframes authOrbit {
  from { transform: translate3d(0, 0, 0) rotate(0); }
  to { transform: translate3d(12px, -9px, 0) rotate(9deg); }
}

@keyframes authRingBreathe {
  0%, 100% { opacity: .65; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes authTrackerSweep {
  0%, 58% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  68% { opacity: .65; }
  92%, 100% { transform: translateX(620%) skewX(-18deg); opacity: 0; }
}

@keyframes authStepPulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--soft-2), 0 0 0 6px rgba(24, 121, 78, .08); }
  50% { box-shadow: 0 0 0 5px var(--soft-2), 0 0 0 10px rgba(24, 121, 78, 0); }
}

/* Calm, official motion for the authentication brand panel. */
@keyframes authLogoFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -7px, 0) rotate(1.2deg); }
}

@keyframes authLogoSheen {
  0%, 62% { transform: translateX(-165%) rotate(20deg); opacity: 0; }
  70% { opacity: .45; }
  84%, 100% { transform: translateX(165%) rotate(20deg); opacity: 0; }
}

@keyframes authBrandGlow {
  0%, 100% { opacity: .6; transform: translate3d(0, 0, 0) scale(.96); }
  50% { opacity: .95; transform: translate3d(10px, -8px, 0) scale(1.04); }
}

.auth-page .logo {
  animation:
    logoSettle .6s cubic-bezier(.2, .75, .25, 1) .12s both,
    authLogoFloat 5.2s ease-in-out .85s infinite;
  will-change: transform;
}

.auth-page .logo::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -22%;
  bottom: -22%;
  left: 35%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  pointer-events: none;
  animation: authLogoSheen 6.5s ease-in-out 1.2s infinite;
}

.auth-page .logo:hover {
  animation: none;
  transform: translateY(-4px) scale(1.025) rotate(-1deg);
}

.auth-page .left::after {
  animation: authBrandGlow 9s ease-in-out infinite;
}

@media (min-width: 901px) {
  .auth-login .box,
  .auth-signup .box {
    width: min(1040px, 100%);
  }

  .auth-login .card,
  .auth-login .card.compact,
  .auth-signup .card,
  .auth-signup .card.compact {
    grid-template-columns: 326px minmax(0, 1fr);
    max-width: 1040px;
  }

  .auth-login .right,
  .auth-login .card.compact .right {
    padding: 38px 58px;
  }

  .auth-signup .right,
  .auth-signup .card.compact .right {
    padding: 25px 48px 28px;
  }

  body.auth-signup .box {
    margin-block: auto;
  }
}

/* Keep the full registration step visible on common laptop-height screens. */
@media (min-width: 901px) and (max-height: 960px) {
  body.auth-signup {
    padding-block: 14px;
  }

  .auth-signup .card,
  .auth-signup .card.compact {
    min-height: 0;
  }

  .auth-signup .right,
  .auth-signup .card.compact .right {
    padding: 17px 42px 19px;
  }

  .auth-signup .auth-context-bar {
    margin-bottom: 10px;
  }

  .auth-signup .right h2 {
    margin-bottom: 2px;
    font-size: 24px;
  }

  .auth-signup .google-signin--signup {
    margin-top: 7px;
    padding: 7px 10px 6px;
  }

  .auth-signup .auth-divider {
    margin: 10px 0 8px;
  }

  .auth-signup .step-tracker {
    --tracker-pad-y: 9px;
    margin: 7px 0 10px;
  }

  .auth-signup .form-group {
    margin-bottom: 6px;
  }

  .auth-signup label {
    margin-bottom: 3px;
  }

  .auth-signup input,
  .auth-signup select {
    min-height: 42px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .auth-signup .btn {
    min-height: 44px;
    margin-top: 9px;
  }

  .auth-signup .small {
    margin-top: 6px;
  }
}

@media (max-width: 900px) {
  .auth-page .box::before,
  .auth-page .box::after {
    display: none;
  }

  .auth-page .left,
  .auth-page .card.compact .left {
    position: relative;
    overflow: hidden;
  }

  .auth-page .brand::before {
    display: none;
  }

  .auth-page .right::before {
    top: 20px;
    right: 22px;
    opacity: .18;
  }

  .auth-page .auth-return {
    margin-bottom: 14px;
  }
}

@media (max-width: 560px) {
  .auth-page .card::before {
    height: 3px;
  }

  .auth-page .left,
  .auth-page .card.compact .left {
    padding: 17px 18px;
    border-bottom-width: 3px;
  }

  .auth-page .brand {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 2px 13px;
  }

  .auth-page .logo {
    width: 54px !important;
    height: 54px !important;
    flex-basis: 54px !important;
    padding: 3px;
    box-shadow: 0 10px 24px rgba(2, 24, 15, .26), 0 0 0 5px rgba(255, 255, 255, .07);
  }

  .auth-page .left h1 {
    font-size: 21px;
  }

  .auth-page .left p {
    font-size: 10.5px;
    line-height: 1.4;
  }

  .auth-page .right,
  .auth-page .card.compact .right {
    padding: 23px 18px 30px;
  }

  .auth-page .right-inner {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .auth-page .right h2 {
    font-size: clamp(22px, 7vw, 25px);
  }

  .auth-page .sub {
    margin-bottom: 19px;
    font-size: 12.5px;
  }

  .auth-page input,
  .auth-page select {
    min-height: 48px;
    font-size: 16px;
  }

  .auth-page .google-signin {
    width: 100%;
    padding: 9px 8px 8px;
    border-radius: 10px;
  }

  .auth-page .auth-divider {
    gap: 8px;
    margin-block: 15px 11px;
    font-size: 9.5px;
  }

  .auth-signup .step-tracker {
    margin: 12px 0 16px;
  }

  .auth-page .profile-upload-container {
    padding: 19px 16px 24px;
  }

  .auth-page .privacy-acknowledgment {
    padding: 11px 12px;
    font-size: 11.5px;
  }
}

@media (max-width: 370px) {
  .auth-page .left p {
    display: none;
  }

  .auth-page .brand {
    grid-template-areas: "logo title";
    align-items: center;
  }

  .auth-page .left h1 {
    align-self: center;
  }

  .auth-page .btn-group {
    flex-direction: column-reverse;
  }

  .auth-page .btn-group .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-page::before,
  .auth-page .box::before,
  .auth-page .box::after,
  .auth-page .left::before,
  .auth-signup .step-tracker::after,
  .auth-signup .step-item.active .step-circle {
    animation: none !important;
  }

  .auth-page .box,
  body.auth-page.auth-page-leaving .box {
    transition: none !important;
    transform: none !important;
  }

  body.auth-page::after,
  body.auth-page.auth-page-leaving::after {
    transition: none !important;
  }
}
