/* Frevoy AI — final Mulberry & Rose identity. Authentication belongs to Frappe. */
body.frevoy-auth {
  --auth-ink: #32242e;
  --auth-text: #30252d;
  --auth-muted: #625761;
  --auth-primary: #b52258;
  --auth-hover: #941a46;
  --auth-line: #d9d1d6;
  --auth-soft: #f8f6f7;
  margin: 0;
  color: var(--auth-text);
  background: #fff;
  font-family: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.frevoy-auth * { box-sizing: border-box; }
.frevoy-auth a { color: var(--auth-primary); text-decoration: none; }
.frevoy-auth a:hover { color: var(--auth-hover); text-decoration: underline; }
.frevoy-auth a:focus-visible, .frevoy-auth button:focus-visible { outline: 2px solid var(--auth-primary); outline-offset: 4px; }
.frevoy-auth-shell { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(440px, 1fr); min-height: 100svh; }
.frevoy-intro { display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(40px, 5.6vw, 92px); background: #f4f2f3; border-right: 1px solid var(--auth-line); }
.frevoy-auth-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; align-self: flex-start; }
.frevoy-auth-brand:hover { text-decoration: none !important; }
.frevoy-auth-brand img { width: 198px; height: auto; }
.frevoy-auth-brand>span { color: var(--auth-muted); font-size: 12px; letter-spacing: .08em; padding-left: 2px; }
.frevoy-intro-main { margin: 64px 0; max-width: 480px; }
.frevoy-eyebrow { color: var(--auth-muted); font-size: 10px; letter-spacing: .14em; font-weight: 600; line-height: 1.6; margin: 0 0 20px; }
.frevoy-intro h1 { color: var(--auth-ink); font-size: clamp(38px, 4vw, 58px); line-height: 1.28; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.frevoy-intro h1>span { color: var(--auth-primary); }
.frevoy-intro-copy { font-size: 16px; line-height: 1.9; color: var(--auth-muted); margin: 24px 0 36px; }
.frevoy-flow { max-width: 370px; }
.frevoy-flow-line { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 13px; border-top: 1px solid var(--auth-line); border-bottom: 1px solid var(--auth-line); }
.frevoy-flow-line span { font-weight: 500; }
.frevoy-flow-line i { color: var(--auth-primary); font-style: normal; }
.frevoy-agent-note { display: flex; align-items: flex-start; gap: 12px; padding: 22px 0; }
.frevoy-agent-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--auth-primary); border-radius: 6px; color: var(--auth-primary); font-size: 22px; flex-shrink: 0; }
.frevoy-agent-note strong { color: var(--auth-ink); font-size: 13px; font-weight: 600; }
.frevoy-agent-note p { color: var(--auth-muted); font-size: 12px; margin: 6px 0 0; line-height: 1.5; }
.frevoy-intro-foot { font-size: 12px; color: var(--auth-muted); margin: 0; letter-spacing: .02em; }
.frevoy-auth-pane { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 72px 48px 96px; position: relative; }
.frevoy-auth-pane>section { padding: 0; margin: 0; width: 100%; max-width: 360px; }
.frevoy-auth .login-content.page-card { max-width: none; width: 100%; background: transparent; border: 0; padding: 0; border-radius: 0; box-shadow: none; }
.frevoy-auth .page-card-head { display: block; text-align: left; padding: 0; margin: 0 0 32px; }
.frevoy-auth .page-card-head .frevoy-eyebrow { margin-bottom: 16px; }
.frevoy-auth .page-card-head h2 { font-size: 30px; line-height: 1.3; font-weight: 600; color: var(--auth-text); margin: 0 0 12px; }
.frevoy-auth .page-card-subtitle { color: var(--auth-muted); font-size: 13px; line-height: 1.7; margin: 0; }
.frevoy-auth .page-card-body, .frevoy-auth .page-card-actions { padding: 0; }
.frevoy-auth .form-group { margin: 0 0 20px; }
.frevoy-auth .form-label { display: block; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--auth-text); margin-bottom: 8px; }
.frevoy-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; margin-bottom: 8px; }
.frevoy-auth .frevoy-label-row .form-label { margin-bottom: 0; width: auto; }
.frevoy-label-row>a { font-size: 12px; white-space: nowrap; }
.frevoy-auth .form-control { height: 46px; width: 100%; border: 1px solid var(--auth-line); border-radius: 5px; background: #fff; color: var(--auth-text); padding: 12px 14px; font-size: 14px; box-shadow: none; }
.frevoy-auth .form-control::placeholder { color: #766c74; opacity: 1; }
.frevoy-auth .form-control:focus { outline: none; border-color: var(--auth-primary); box-shadow: 0 0 0 3px #b5225812; }
.frevoy-auth .password-field { position: relative; }
.frevoy-auth .password-field>.form-control { padding-right: 62px; }
.frevoy-auth .toggle-password { position: absolute; top: 0; right: 0; height: 46px; min-width: 54px; padding: 0 12px; border: 0; background: transparent; font-size: 12px; color: var(--auth-muted); cursor: pointer; }
.frevoy-auth .toggle-password:hover { color: var(--auth-primary); }
.frevoy-auth .btn { font-size: 14px; font-weight: 500; min-height: 46px; border-radius: 5px; padding: 12px 16px; transition: background-color 150ms ease-out; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.frevoy-auth .btn-block { display: flex; width: 100%; }
.frevoy-auth .btn-primary, .frevoy-auth .btn-signup { color: #fff; background: var(--auth-primary); border: 1px solid var(--auth-primary); }
.frevoy-auth .btn-primary:hover, .frevoy-auth .btn-signup:hover { color: #fff; background: var(--auth-hover); border-color: var(--auth-hover); }
.frevoy-auth .btn-primary:disabled, .frevoy-auth .btn-signup:disabled { background: var(--auth-primary); border-color: var(--auth-primary); opacity: .5; }
.frevoy-auth .btn-default { background: #fff; border: 1px solid var(--auth-line); color: var(--auth-text); }
.frevoy-auth .btn-default:hover { background: var(--auth-soft); border-color: #b7a7b1; color: var(--auth-text); }
.frevoy-auth .page-card-actions>*+*, .frevoy-provider-logins>*+* { margin-top: 12px; }
.frevoy-auth .btn-login-option { text-decoration: none; }
.frevoy-provider-logins img { width: 18px; height: 18px; }
.frevoy-auth .sign-up-message { margin: 28px 0 0; text-align: center; font-size: 12px; color: var(--auth-muted); }
.frevoy-auth .login-error-banner, .frevoy-auth .login-success-banner { display: none; padding: 12px 14px; margin-bottom: 20px; line-height: 1.6; border: 1px solid var(--auth-line); border-left: 3px solid var(--auth-primary); border-radius: 5px; background: var(--auth-soft); font-size: 13px; }
.frevoy-auth .login-error-banner { color: #a42140; border-left-color: #a42140; }
.frevoy-auth .login-success-banner { color: var(--auth-text); }
.frevoy-auth .field-error { margin: 6px 0 0; color: #a42140; font-size: 12px; }
.frevoy-auth .field-error:empty { display: none; }
.frevoy-auth .invalid .form-control { border-color: #a42140; }
.frevoy-form-status { margin: 16px 0 0; font-size: 12px; color: var(--auth-muted); line-height: 1.6; }
.frevoy-form-status:empty { display: none; }
.frevoy-auth .resend-link { display: none; justify-content: center; gap: 8px; font-size: 12px; color: var(--auth-muted); }
.frevoy-auth-foot { position: absolute; left: 24px; right: 24px; bottom: 32px; text-align: center; color: var(--auth-muted); font-size: 11px; margin: 0; line-height: 1.8; }
.frevoy-auth .password-strength-container { margin-top: 12px; }
.frevoy-auth .password-strength-label { font-size: 12px; color: var(--auth-muted) !important; }
.frevoy-auth .password-strength-bar-track { height: 3px; background: var(--auth-line); border-radius: 2px; margin-top: 8px; }
.frevoy-auth .password-strength-bar-fill { height: 3px; background: var(--auth-primary) !important; border-radius: 2px; }
.frevoy-auth .password-mismatch-message, .frevoy-auth .password-strength-message { font-size: 12px; margin-top: 8px; }
.frevoy-auth .text-muted { color: var(--auth-muted) !important; }
.frevoy-auth .indicator { color: var(--auth-primary); }
.frevoy-auth #twofactor_div .page-card-head { margin: 0 0 20px; }
.frevoy-auth #otp_div { font-size: 13px; line-height: 1.7; color: var(--auth-muted); }
.frevoy-auth .frevoy-no-script { font-size: 14px; color: #a42140; }
.frevoy-auth .splash { position: fixed; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: #f4f2f3; transform: none; }
.frevoy-auth .splash img { max-width: 250px !important; }
.frevoy-auth .splash::after { content: "正在进入工作台…"; color: var(--auth-muted); font-size: 14px; }
@media (min-width: 1500px) { .frevoy-auth-shell { grid-template-columns: 1.1fr 1fr; } }
@media (max-width: 800px) {
  .frevoy-auth-shell { display: block; }
  .frevoy-intro { padding: 28px 32px; border-right: 0; border-bottom: 1px solid var(--auth-line); }
  .frevoy-auth-brand img { width: 156px; }
  .frevoy-auth-brand>span { font-size: 11px; }
  .frevoy-intro-main, .frevoy-intro-foot { display: none; }
  .frevoy-auth-pane { min-height: calc(100svh - 123px); padding: 48px 28px 96px; }
  .frevoy-auth-pane>section { max-width: 380px; }
  .frevoy-auth .page-card-head h2 { font-size: 28px; }
  .frevoy-auth-foot { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .frevoy-auth .btn { transition: none; } }

.frevoy-code-row{display:flex;gap:12px;align-items:center}.frevoy-code-row .form-control{min-width:0;flex:1}.frevoy-code-row .btn{flex-shrink:0;min-height:48px}.frevoy-mobile-note{font-size:13px;line-height:1.7;color:var(--text-muted,#667085)}
