/* Sign-in, following the same split-screen shape as the rest of Boostorder's
   auth pages: the pitch on the left, the thing you actually came to do on the
   right. Adapted to SKF's green rather than the blue used elsewhere. */

/* Montserrat first, matching the other Boostorder auth pages, with Noto Sans TC
   behind it for the Chinese copy — Montserrat has no CJK glyphs, so Noto is
   what actually renders the page's default zh-TW text. */
body {
  min-height: 100vh; background: #fff;
  font-family: 'Montserrat', 'Noto Sans TC', -apple-system, system-ui, sans-serif;
}

.auth-shell { display: flex; min-height: 100vh; }

.auth-left {
  flex: 1 1 50%; position: relative; overflow: hidden;
  padding: 48px 64px; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 12% 12%, rgba(240, 255, 251, 0.95) 0%, rgba(240, 255, 251, 0) 42%),
    radial-gradient(circle at 78% 32%, rgba(0, 177, 135, 0.42) 0%, rgba(0, 177, 135, 0) 55%),
    radial-gradient(circle at 8% 96%, rgba(77, 204, 171, 0.35) 0%, rgba(77, 204, 171, 0) 45%),
    linear-gradient(180deg, #FDFEFE 0%, #F1FAF7 100%);
}
.auth-dots { position: absolute; top: 48px; right: 56px; width: 150px; height: 64px; color: rgba(255,255,255,.9); }
.auth-brand { display: flex; align-items: baseline; gap: 9px; }
.auth-logo-img { height: 30px; width: auto; display: block; }
.auth-logo-x { color: #8A98A8; font-size: 14px; line-height: 1; }
.auth-logo-app { font-weight: 600; font-size: 17px; line-height: 1; color: #1F2A37; }

.auth-copy { margin-top: auto; margin-bottom: auto; max-width: 500px; }
.auth-headline { font-weight: 700; font-size: 38px; line-height: 1.24; margin: 0 0 18px; color: #14231D; }
.auth-sub { font-size: 16px; line-height: 1.7; color: #4A5A53; margin: 0 0 20px; }
.auth-learn-more {
  font-size: 15px; font-weight: 600; color: #0F6F58;
  text-decoration: underline; text-underline-offset: 3px;
}
.auth-learn-more:hover { color: #00B187; }
.auth-foot { font-size: 12px; color: #7A8A83; line-height: 1.6; }

.auth-right {
  flex: 1 1 50%; position: relative; display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 32px;
}
.auth-lang { position: absolute; top: 24px; right: 24px; }
.auth-card { width: 100%; max-width: 430px; text-align: center; }
.auth-icon-tile {
  width: 88px; height: 88px; border-radius: 20px;
  background: var(--tone-info-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.auth-icon-tile svg { width: 46px; height: 46px; }
.auth-icon-tile img { width: 48px; height: 48px; }
.auth-card h1 { font-size: 30px; font-weight: 700; margin: 0 0 8px; color: #14231D; }
.auth-lede { color: #6B7A75; font-size: 15px; line-height: 1.6; margin: 0 0 28px; }

/* One button per identity. The prototype's whole model is who you are, so the
   sign-in is where that is chosen rather than a chip tucked into the chrome. */
.auth-roles { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.auth-role {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border: 1px solid var(--control-border);
  border-radius: 10px; background: #fff; cursor: pointer;
  font-family: inherit; transition: border-color .14s, box-shadow .14s;
}
.auth-role:hover { border-color: var(--skf-green); box-shadow: 0 3px 14px rgba(0,0,0,.06); }
.auth-role-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 19px;
  background: var(--skf-green); color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.auth-role-avatar.supplier { background: var(--primary); }
.auth-role-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.auth-role-name { font-size: 14px; font-weight: 600; color: #14231D; }
.auth-role-sub { font-size: 12px; color: #6B7A75; }
.auth-role-go { margin-left: auto; color: var(--text-faint); font-size: 15px; }

.auth-note {
  font-size: 12px; color: #8A9691; line-height: 1.7;
  margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--divider);
}


@media (max-width: 900px) {
  .auth-shell { flex-direction: column; }
  .auth-left { padding: 32px; }
  .auth-copy { margin: 28px 0; }
  .auth-headline { font-size: 28px; }
}

/* ---- the sign-in form --------------------------------------------------- */
/* Boostorder's standard auth form, in SKF's green. */

.auth-form { margin: 0; text-align: left; }
.auth-label { font-size: 13px; font-weight: 600; color: #33403C; display: block; margin-bottom: 8px; }
.auth-form input {
  width: 100%; height: 48px; border: 1px solid var(--control-border); border-radius: 10px;
  padding: 0 16px; font-size: 15px; font-family: inherit;
  color: var(--text-primary); margin-bottom: 20px;
}
.auth-form input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 119, 210, 0.12);
}
.auth-btn {
  width: 100%; height: 50px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.auth-btn:hover { background: #0F5CA8; }
.auth-btn:disabled { background: #9CC3E8; cursor: default; }

.auth-waiting { margin-top: 28px; text-align: left; }
.auth-waiting h2 { font-size: 20px; font-weight: 700; margin: 0 0 10px; color: #14231D; }
.auth-error { color: var(--tone-bad-fg); font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; }
.auth-links a { font-size: 13px; font-weight: 600; color: var(--primary); }

.auth-card p a { color: var(--primary); font-weight: 600; }
.auth-icon-tile .ms { font-size: 40px; }

@media (max-width: 880px) {
  .auth-left { display: none; }
  .auth-right { flex: 1 1 100%; }
}
