/* FOUR FLAMES • FACETED EMBER 008 • AUTHENTIC FIRST-USE SCREENS
   Presentation-only enhancement for sign-in, first-password-change,
   private DPSST registration and visible form feedback.
   Existing validation, form names, account rules and security handlers remain intact.
   Only owner-selected Plateau Ember appearance is affected. */
@media screen {
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) {
  box-sizing:border-box;
  width:min(calc(100% - 28px),490px);
  max-width:490px;
  margin:max(20px,env(safe-area-inset-top)) auto max(24px,env(safe-area-inset-bottom));
  padding:clamp(20px,3vw,35px);
  border:1px solid #6a9690;
  border-top:4px solid #ea984f;
  border-radius:22px 6px 22px 6px;
  background:linear-gradient(150deg,#253b3a 0%,#192e2e 32%,#0d1f22 100%);
  box-shadow:inset 0 1px #e5fff023,0 17px 42px #0009;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) h1 {
  color:#fff7e9;font-weight:820;letter-spacing:-.015em;
  font-size:clamp(1.42rem,3.5vw,1.92rem);line-height:1.18;
  margin:4px 0 12px;overflow-wrap:anywhere;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) p.muted {
  color:#c6dfd9;line-height:1.53;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) form {
  display:grid;grid-template-columns:minmax(0,1fr);gap:12px;
  margin:17px 0 11px;max-width:100%;min-width:0;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) form label {
  display:block;color:#eef9f2;font-weight:730;
  font-size:.96rem;line-height:1.42;min-width:0;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) form label input {
  box-sizing:border-box;display:block;width:100%;min-width:0;
  min-height:52px;margin:7px 0 0;padding:11px 13px;
  border-radius:12px 5px 12px 5px;
  border:1px solid #769d99;background:#102b2d;
  color:#f7fffa;font-size:1rem;line-height:1.3;
  box-shadow:inset 0 2px 7px #0003;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) form label input:focus-visible {
  outline:3px solid #b3fff0;outline-offset:2px;border-color:#c4fff1;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) form label input:user-invalid {
  border-color:#ffb7ad;box-shadow:inset 0 1px 0 #f8a4a344;
}
/* Clear visual difference between the main account action and safe exit. */
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) form button[type=submit],
body[data-ff-mode="plateau_ember_preview"] #login form button:not([type]) {
  box-sizing:border-box;min-width:0;min-height:60px;
  width:100%;padding:13px 15px;margin-top:5px;
  border:1px solid #ffc58f;border-radius:17px 5px 17px 5px;
  background:linear-gradient(150deg,#a95226 0%,#89401f 56%,#5d2c1d 100%);
  color:#fff8ed;font-weight:830;font-size:1.03rem;
  line-height:1.25;white-space:normal;overflow-wrap:anywhere;
  text-shadow:0 1px 1px #180c07b3;
  box-shadow:inset 0 2px #ffdc9c70,inset 0 -4px #27170bb3,0 8px 17px #0008;
  touch-action:manipulation;
}
body[data-ff-mode="plateau_ember_preview"] :is(#passwordChange,#dpsstEnrollment) form button.secondary {
  box-sizing:border-box;min-height:53px;width:100%;padding:10px 15px;
  border:1px solid #80d0c2;border-radius:15px 5px 15px 5px;
  background:linear-gradient(150deg,#277870,#19504b 63%,#123737);
  color:#f0fff8;font-weight:760;font-size:1rem;
  box-shadow:inset 0 1px #e2fff06b,inset 0 -3px #041d209c,0 5px 11px #0008;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) form button:focus-visible {
  outline:3px solid #b7fff2;outline-offset:3px;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) form button:active:not(:disabled) {
  transform:translateY(2px);box-shadow:inset 0 3px 9px #0009,0 2px 4px #0005;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) form button:disabled {
  opacity:1;color:#c9d0ca;background:#384743;border-color:#798882;
  box-shadow:none;cursor:not-allowed;
}
body[data-ff-mode="plateau_ember_preview"] #passwordChangeDpsstFields:not([hidden]) {
  box-sizing:border-box;min-width:0;
  padding:16px;border:1px solid #688f85;
  border-left:4px solid #ce8549;
  border-radius:13px 5px 13px 5px;
  background:linear-gradient(150deg,#1b3332,#142829);
}
body[data-ff-mode="plateau_ember_preview"] #passwordChangeDpsstFields:not([hidden]) > p:first-child {
  margin:0 0 13px;
}
body[data-ff-mode="plateau_ember_preview"] #passwordChangeDpsstFields:not([hidden]) > label {margin:0 0 13px;}
body[data-ff-mode="plateau_ember_preview"] #passwordChangeDpsstFields:not([hidden]) > p:last-child {
  font-size:.88rem;color:#d5e8da;line-height:1.45;margin:0;
}
/* Error text must be visually distinct but never imply a success or a pass. */
body[data-ff-mode="plateau_ember_preview"] :is(#loginError,#passwordChangeError,#dpsstEnrollmentError):not(:empty) {
  margin:14px 0;padding:13px 15px;
  background:#4c292c;border:1px solid #e69f9e;border-left:5px solid #ffb5a9;
  border-radius:12px 5px 12px 5px;color:#fff2ee;
  line-height:1.48;font-weight:740;overflow-wrap:anywhere;
}
body[data-ff-mode="plateau_ember_preview"] #login .brand-login-logo {
  max-width:clamp(140px,42vw,190px);height:auto;display:block;
}
}
@media screen and (max-width:380px){
 body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment){
   width:calc(100% - 20px);padding:17px;margin-top:12px;border-radius:17px 5px 17px 5px;
 }
 body[data-ff-mode="plateau_ember_preview"] #passwordChangeDpsstFields:not([hidden]) {padding:12px;}
}
@media (prefers-reduced-motion:reduce){
 body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) button {
   transition:none!important;transform:none!important;
 }
}
