/* Sign-in page */
.login-body { background: #fff; }
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }

.login__hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 20% 0%, #1596cf 0%, transparent 60%), linear-gradient(160deg, #0b0b0c 0%, #050506 100%);
  padding: 40px 48px; display: flex; flex-direction: column; gap: 28px;
}
.login__brand { display: flex; align-items: center; gap: 12px; }
.login-logo { height: 100px; width: auto; }
.login-erp { font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .14em; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 4px 8px; color: rgba(255,255,255,.85); }
.hero-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.hero-work figure { margin: 0; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.08); position: relative; aspect-ratio: 5 / 4; }
.hero-work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-work figure:hover img { transform: scale(1.05); }
.hero-work figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 11.5px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.hero-spectrum { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.hero-name { font-weight: 700; font-size: 17px; }
.hero-sub { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.hero-copy { max-width: 540px; margin-top: auto; }
.hero-copy h1 { color: #fff; font-size: 32px; line-height: 1.18; letter-spacing: -.025em; margin-top: 16px; }
.hero-copy p { color: rgba(255,255,255,.72); font-size: 15px; margin-top: 14px; line-height: 1.6; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.skyline { width: 100%; max-width: 620px; height: auto; }
.skyline .lines { animation: glow 3.2s ease-in-out infinite alternate; }
.skyline .windows rect { animation: twinkle 4s ease-in-out infinite; }
.skyline .windows rect:nth-child(2n) { animation-delay: 1.3s; }
.skyline .windows rect:nth-child(3n) { animation-delay: 2.2s; }
@keyframes glow { from { opacity: .65; } to { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.hero-stats b { display: block; font-size: 22px; }
.hero-stats span { font-size: 12px; color: rgba(255,255,255,.6); }

.login__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login__form { width: 100%; max-width: 440px; }
.login__form h2 { font-size: 24px; }
.or { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role-card {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; border: 1px solid var(--line);
  border-radius: 11px; background: #fff; transition: all .15s; min-width: 0;
}
.role-card:hover { border-color: var(--brand-500); background: var(--brand-50); transform: translateY(-1px); }
.role-card__icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex-shrink: 0; }
.role-card:hover .role-card__icon { background: var(--brand-600); color: #fff; }
.role-card__text { min-width: 0; display: flex; flex-direction: column; }
.role-card__text b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-card__text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 960px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login__hero { padding: 28px 20px; gap: 18px; }
  .hero-copy { margin-top: 8px; }
  .hero-copy h1 { font-size: 26px; }
  .hero-work, .hero-stats { display: none; }
  .login__panel { padding: 28px 16px 40px; }
}
@media (max-width: 420px) { .role-grid { grid-template-columns: minmax(0, 1fr); } }
