:root {
  --learn-bg: #f7f6f2;
  --learn-ink: #292d32;
  --learn-muted: #8a8c8b;
  --learn-accent: #e47742;
  --learn-accent-dark: #cf6430;
  --tblr-font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --tblr-primary: #e47742;
  --tblr-primary-rgb: 228, 119, 66;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--learn-bg); color: var(--learn-ink); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
a { color: inherit; }
svg { display: block; width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.mobile-shell { width: 100%; max-width: 480px; min-height: 100vh; min-height: 100svh; margin-inline: auto; }
.login-screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: max(24px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
.brand-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 800; letter-spacing: -.8px; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--learn-ink); text-decoration: none; }
.brand-dot { color: var(--learn-accent); }
.brand-symbol { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--learn-accent); }
.brand-symbol svg { width: 24px; height: 24px; }
.brand-caption { color: #92938f; font-size: 10px; letter-spacing: .4px; }
.login-intro { position: relative; padding: clamp(28px, 5.1svh, 52px) 9px 0; }
.intro-eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 15px; color: #8b7768; font-size: 11px; letter-spacing: 1px; }
.intro-eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: var(--learn-accent); }
.login-intro h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(28px, 7.5vw, 35px); font-weight: 750; line-height: 1.55; letter-spacing: 1px; }
.heading-dot { color: var(--learn-accent); }
.intro-description { margin: 12px 0 0; font-size: 12px; color: var(--learn-muted); letter-spacing: .5px; }
.learning-art { position: relative; height: clamp(137px, 20svh, 188px); width: 240px; margin: 8px auto 2px; }
.art-orbit { position: absolute; width: 205px; height: 123px; border-radius: 50%; background: #eeede6; left: 20px; bottom: 13px; transform: rotate(-10deg); }
.art-page { position: absolute; width: 109px; height: 124px; border-radius: 13px; }
.art-page-back { background: #f5d5b7; border: 1px solid #edc6a4; bottom: 23px; left: 83px; transform: rotate(13deg); }
.art-page-front { display: flex; align-items: center; flex-direction: column; gap: 8px; background: #fffefa; border: 1px solid #e7e3d9; bottom: 18px; left: 55px; transform: rotate(-9deg); box-shadow: 0 9px 22px #6d5b3510; padding-top: 14px; }
.art-book { color: var(--learn-accent); margin-bottom: 0; }
.art-book svg { width: 40px; height: 40px; stroke-width: 1.6; }
.art-line { display: block; height: 4px; width: 36px; border-radius: 2px; background: #e9e7df; }
.art-line-wide { width: 53px; }
.art-progress { display: flex; gap: 4px; margin-top: 4px; }
.art-progress i { display: block; width: 8px; height: 4px; border-radius: 2px; background: #e7e8dd; }
.art-progress i:nth-child(-n+3) { background: #b2b99a; }
.art-check { position: absolute; left: 154px; bottom: 22px; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #879d76; color: white; border: 4px solid var(--learn-bg); transform: rotate(8deg); }
.art-check svg { width: 20px; height: 20px; stroke-width: 2; }
.art-spark { position: absolute; color: #c29a76; font-size: 23px; font-weight: 300; }
.art-spark-one { left: 24px; bottom: 93px; transform: rotate(12deg); }
.art-spark-two { right: 19px; bottom: 65px; font-size: 15px; }
.art-small-dot { position: absolute; top: 28px; right: 47px; width: 6px; height: 6px; background: #b8bea7; border-radius: 50%; }
.login-panel { position: relative; padding: 25px 23px 22px; border-radius: 25px; background: #fff; border: 1px solid #eeede6; box-shadow: 0 7px 30px #49422704; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.panel-eyebrow { display: block; font-size: 10px; letter-spacing: 1.4px; color: #a3998a; margin-bottom: 7px; }
.panel-heading h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: .3px; }
.panel-step { color: #c4bbae; font-size: 8px; letter-spacing: 1.5px; padding-bottom: 4px; white-space: nowrap; }
.login-description { color: var(--learn-muted); font-size: 12px; margin: 9px 0 24px; }
.phone-label { font-size: 12px; font-weight: 500; color: #626662; margin-bottom: 9px; }
.phone-field { display: flex; align-items: center; height: 56px; border: 1px solid #e6e8e3; background: #fafbf8; border-radius: 13px; transition: border-color .15s, box-shadow .15s; }
.phone-field:focus-within { border-color: var(--learn-accent); box-shadow: 0 0 0 3px #e4774214; }
.phone-field.has-error { border-color: #d95245; }
.phone-prefix { flex-shrink: 0; display: grid; place-items: center; min-width: 59px; height: 20px; border-right: 1px solid #dedfd8; color: #50574e; font-size: 15px; font-weight: 500; }
.phone-field .phone-input { width: 100%; min-width: 0; height: 100%; padding: 0 13px; border: 0; border-radius: 0 13px 13px 0; background: transparent; color: var(--learn-ink); font-size: 16px; line-height: normal; box-shadow: none; }
.phone-field .phone-input:focus { background: transparent; box-shadow: none; outline: none; }
.phone-input::placeholder { color: #b0b4ac; font-size: 14px; }
.phone-error { min-height: 25px; padding-top: 5px; color: #c94a3f; font-size: 11px; }
.login-server-error { color: #c94a3f; font-size: 12px; }
.login-server-error ul { list-style: none; padding: 0; margin: 0 0 12px; }
.login-server-error.validation-summary-valid { display: none; }
.login-button.btn { width: 100%; min-height: 53px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 13px 20px; background: var(--learn-accent); border: 1px solid var(--learn-accent); color: white; font-size: 15px; font-weight: 600; border-radius: 13px; box-shadow: 0 4px 10px #e4774214; }
.login-button.btn:hover, .login-button.btn:focus-visible, .login-button.btn:active { background: var(--learn-accent-dark); border-color: var(--learn-accent-dark); color: white; }
.login-button.btn:focus-visible { outline: 3px solid #e4774240; outline-offset: 3px; }
.login-button.btn:disabled { background: var(--learn-accent); border-color: var(--learn-accent); opacity: .7; }
.button-arrow { width: 19px; height: 19px; stroke-width: 1.8; }
.button-spinner { width: 17px; height: 17px; border: 2px solid #ffffff60; border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.login-help { margin: 17px 0 0; color: #a1a49d; font-size: 11px; text-align: center; }
.login-footer { display: flex; justify-content: center; align-items: center; gap: 11px; padding-top: 25px; margin-top: auto; color: #b0b1a8; font-size: 10px; letter-spacing: 1.6px; }
.login-footer span { width: 16px; height: 1px; background: #ddddd3; }
.learn-dialog { border-radius: 22px; padding: 24px 20px; font-family: var(--tblr-font-sans-serif); }
.learn-dialog .swal2-title { color: var(--learn-ink); font-size: 20px; }
.learn-dialog .swal2-html-container { font-size: 14px; line-height: 1.8; color: #858b80; }
.learn-dialog .swal2-actions { width: 100%; margin-top: 20px; }
.learn-dialog-button.btn { background: var(--learn-accent); border: 0; border-radius: 11px; color: white; width: 100%; min-height: 48px; font-size: 14px; }
.signed-in-screen { padding: max(25px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
.welcome-card { margin-top: 70px; padding: 30px 24px; border-radius: 24px; border-color: #ecebe4; box-shadow: none; text-align: center; }
.welcome-check { display: grid; place-items: center; margin: 0 auto 22px; width: 54px; height: 54px; background: #eef2e8; color: #879d76; border-radius: 18px; }
.welcome-check svg { width: 28px; height: 28px; }
.welcome-card h1 { margin: 4px 0 12px; font-size: 22px; line-height: 1.5; overflow-wrap: anywhere; }
.welcome-card > p { color: var(--learn-muted); font-size: 13px; }
.account-phone { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; margin: 12px 0 20px; border-block: 1px solid #f0f0eb; font-size: 13px; }
.account-phone > span { color: var(--learn-muted); }
.account-phone > strong { font-weight: 500; }
.logout-button.btn { width: 100%; min-height: 49px; border-color: #e7e7df; background: #fafbf8; border-radius: 12px; color: #74776f; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 350px) {
  .login-screen { padding-inline: 17px; }
  .brand-caption { font-size: 9px; letter-spacing: 0; }
  .login-intro { padding-inline: 5px; }
  .login-panel { padding-inline: 19px; }
  .panel-step { display: none; }
}
@media (max-height: 740px) {
  .login-intro { padding-top: 25px; }
  .learning-art { height: 135px; }
  .login-panel { padding-top: 21px; padding-bottom: 19px; }
  .login-description { margin-bottom: 18px; }
  .login-footer { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .button-spinner { animation-duration: 1.5s; }
}
