/* ===================================================================
   LOGIN PAGE
   =================================================================== */

.login-frame{
  background:var(--rawm-ink);
  background-image:
    repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 2px, transparent 2px, transparent 8px),
    radial-gradient(circle at 50% 8%, rgba(238,127,45,.16), transparent 55%);
}

.login-scroll{
  flex:1 1 auto;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  display:flex;
  flex-direction:column;
  padding:0 28px;
}
.login-scroll::-webkit-scrollbar{ display:none; }

.login-top{
  text-align:center;
  padding-top:14vh;
  padding-bottom:36px;
}

.login-logo-badge{
  width:78px;
  height:78px;
  margin:0 auto 18px;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 18px 34px -12px rgba(0,0,0,.55);
}
.login-logo-badge img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.login-app-name{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:.18em;
  font-size:22px;
  color:#fff;
  margin:0;
}

.login-tagline{
  font-size:12.5px;
  color:#A8A6A3;
  letter-spacing:.04em;
  margin-top:4px;
}

.login-form{ padding-bottom:10px; }

.rawm-label{
  display:block;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#9E9C99;
  margin-bottom:6px;
}

.rawm-input-group .rawm-control{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  font-size:15px;
  padding:12px 14px;
}
.rawm-input-group .rawm-control::placeholder{ color:#7E7C7A; }
.rawm-input-group .rawm-control:focus{
  background:rgba(255,255,255,.09);
  border-color:var(--rawm-orange);
  box-shadow:none;
  color:#fff;
}

.rawm-prefix{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:#C9C7C4;
  font-weight:600;
  font-size:14px;
}

.rawm-control.is-invalid-rawm{
  border-color:#E2693A !important;
}

.rawm-toggle-pass{
  cursor:pointer;
}
.rawm-toggle-pass i{ font-size:16px; }

.field-error{
  display:none;
  color:#F0A574;
  font-size:11.5px;
  margin:-6px 0 14px 2px;
}
.was-validated-rawm #mobile:invalid ~ .field-error,
.field-error.show{ display:block; }

.forgot-link{
  font-size:13px;
  color:var(--rawm-orange);
  font-weight:600;
}

.login-submit{
  height:48px;
  border-radius:12px;
  font-size:15px;
  font-weight:600;
  letter-spacing:.02em;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.login-alert{
  margin-top:14px;
  background:rgba(238,127,45,.12);
  border:1px solid rgba(238,127,45,.35);
  color:#F0A574;
  font-size:12.5px;
  padding:10px 12px;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:8px;
}

.login-footnote{
  margin-top:auto;
  padding:22px 4px calc(28px + var(--safe-bottom));
  text-align:center;
  font-size:11.5px;
  line-height:1.5;
  color:#7E7C7A;
}

/* ===================================================================
   CHANGE PASSWORD (uses the login look)
   =================================================================== */
.cp-back{ padding-top:16px; }
.cp-back a{ color:#CFCDCA; font-size:14px; font-weight:600; }
.cp-top{ padding-top:8vh; padding-bottom:22px; }
.cp-top .login-app-name{ font-size:20px; }
.cp-info{
  display:flex; gap:10px; align-items:flex-start;
  background:rgba(238,127,45,.12); border:1px solid rgba(238,127,45,.35);
  color:#F7C9A4; font-size:12.5px; line-height:1.45;
  padding:10px 12px; border-radius:12px; margin-bottom:18px;
}
.cp-info i{ font-size:16px; color:var(--rawm-orange); margin-top:1px; }
.cp-rules{ list-style:none; padding:0; margin:6px 0 14px; font-size:12px; color:#9E9C99; }
.cp-rules li{ display:flex; align-items:center; gap:7px; margin-bottom:3px; }
.cp-rules li.ok{ color:#7FD39E; }
.cp-rules li.ok i:before{ content:"\F26B"; } /* bi-check-circle-fill */
.field-error:empty{ display:none; }
.cp-done{ text-align:center; padding:24px 20px 20px; border-radius:18px; }
.cp-done-icon{ width:56px; height:56px; border-radius:50%; background:#2C8A53; color:#fff; font-size:28px;
  display:flex; align-items:center; justify-content:center; margin:0 auto 12px; }
.cp-done h6{ font-family:var(--font-display); font-size:18px; color:var(--rawm-ink); margin-bottom:6px; }
.cp-done p{ font-size:13px; color:var(--rawm-charcoal-2); margin-bottom:16px; }

/* ---- Accept policies checkbox (Log in is disabled until ticked) ---- */
.policy-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 0 18px;
  cursor:pointer;
  font-size:12.5px;
  line-height:1.5;
  color:#C9C7C4;
  user-select:none;
}
.policy-check input{ position:absolute; opacity:0; width:0; height:0; }
.policy-check .pc-box{
  flex:0 0 20px;
  width:20px; height:20px;
  margin-top:1px;
  border-radius:6px;
  border:1.5px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, border-color .15s ease;
}
.policy-check .pc-box i{ font-size:14px; color:#fff; opacity:0; transition:opacity .15s ease; }
.policy-check input:checked + .pc-box{ background:var(--rawm-orange); border-color:var(--rawm-orange); }
.policy-check input:checked + .pc-box i{ opacity:1; }
.policy-check input:focus-visible + .pc-box{ box-shadow:0 0 0 3px rgba(238,127,45,.35); }
.policy-check a{ color:var(--rawm-orange); font-weight:600; text-decoration:underline; text-underline-offset:2px; }

.login-submit:disabled{
  background:#4A4846;
  border-color:#4A4846;
  color:#9E9C99;
  opacity:1;
}

/* ---- Policy sheet (opens from the checkbox links) ---- */
.policy-sheet{ background:var(--rawm-cream); border:0; border-radius:0; }
.policy-sheet-head{
  display:flex; align-items:center; gap:12px;
  height:calc(var(--header-h) + env(safe-area-inset-top));
  padding:env(safe-area-inset-top) 14px 0;
  background:var(--rawm-ink);
  color:#fff;
  flex:0 0 auto;
}
.policy-sheet-head h6{ margin:0; font-family:var(--font-display); font-size:18px; font-weight:600; letter-spacing:.02em; }
.policy-sheet iframe{ flex:1 1 auto; width:100%; border:0; background:var(--rawm-cream); }
.policy-sheet-foot{
  flex:0 0 auto;
  padding:12px 16px calc(12px + var(--safe-bottom));
  background:var(--rawm-surface);
  border-top:1px solid var(--rawm-line);
}
.policy-sheet-foot .btn{ height:46px; border-radius:12px; }
