/* ==========================================================================
   Unity Drive demo — login / role picker
   Four role cards on a dark asphalt band crossed by the lane line.
   ========================================================================== */
body { background: var(--offwhite); min-height: 100vh; }
.login-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.login-header .brand img { height: 44px; }
.login-main { padding: 0 0 80px; }
.login-intro { background: var(--asphalt); color: #b9c8da; padding: 56px 24px 120px; position: relative; }
.login-intro > * { width: min(1180px, 100%); margin-left: auto; margin-right: auto; }
.login-intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 64px; height: 4px; background: var(--lane); opacity: .85; }
.login-intro h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 10px; }
.login-intro p { font-size: 17px; }
#loginNotice .alert { max-width: 640px; }

.role-grid { width: min(1180px, 100% - 32px); margin: -88px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; z-index: 1; }
.role-card { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: var(--radius); padding: 22px 20px 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.role-card.is-highlight { outline: 3px solid color-mix(in srgb, var(--c) 45%, transparent); outline-offset: 2px; }
.role-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.role-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.role-card h2 { font-size: 21px; margin: 0; }
.role-card > p { color: var(--slate); font-size: 14.5px; min-height: 66px; }
.role-card .segmented { margin-bottom: 10px; width: 100%; }
.role-card .segmented button { flex: 1; font-size: 13px; padding: 7px 6px; white-space: nowrap; }
.role-user { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 12px; margin: 2px 0 14px; min-height: 62px; }
.role-user strong { display: block; font-size: 14px; color: var(--ink); }
.role-user small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }
.btn-amber { background: var(--amber); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16); }
.btn-amber:hover { background: #bf6905; }
.login-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; display: flex; gap: 6px; justify-content: center; align-items: center; padding: 0 16px; }

@media (max-width: 1100px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .role-grid { grid-template-columns: minmax(0, 1fr); }
  .role-card > p { min-height: 0; }
  .login-header { padding: 12px 16px; }
  .login-header .brand img { height: 36px; }
}
