/* Taskflow — sign-in surfaces (Atelier) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary: #14141A; --primary-dk: #000; --primary-lt: #ECEEFA; --accent: #3B6BF0;
  --brass: #8FA9FF;
  --ink: #0E0E14; --ink-2: #3C3E52; --ink-3: #6F7289;
  --line: #DDE0F2;
  --font-ui: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-ui); color: var(--ink);
  min-height: 100vh; background: #fff;
  -webkit-font-smoothing: antialiased; line-height: 1.55;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.login-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; width: 100%; }

/* Brand panel */
.login-brand {
  background: #F4F5FB; color: var(--ink);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 56px;
}
.brand-art { position: absolute; right: -14%; top: 50%; width: 112%; max-width: 780px; transform: translateY(-50%); pointer-events: none; }
.brand-logo { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -.3px; }
.brand-copy { position: relative; z-index: 1; max-width: 520px; }
.brand-headline { font-family: var(--font-display); font-size: 2.8rem; font-weight: 400; line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.brand-tagline { margin-top: 18px; font-size: 15.5px; color: var(--ink-3); line-height: 1.65; max-width: 390px; }

/* Form panel */
.login-form-panel { display: flex; align-items: center; justify-content: center; padding: 48px 40px; background: #fff; }
.login-card { width: 100%; max-width: 400px; }
.login-title::after { content: ''; display: block; height: 3px; width: 2.2em; margin-top: 10px; background: var(--ink); border-radius: 3px; }
.login-brand { border-right: 1px solid var(--line); }
.brand-headline { font-weight: 600; }
.login-title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: var(--ink); letter-spacing: -.04em; line-height: 1.1; margin-bottom: 10px; }
.login-sub { font-size: 15px; color: var(--ink-3); margin-bottom: 34px; line-height: 1.6; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-control {
  width: 100%; padding: 12px 14px; background: #fff;
  border: 1px solid #D3D7EE; border-radius: 14px;
  font-size: 15px; color: var(--ink); font-family: inherit;
  outline: none; transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control::placeholder { color: #A9ACC4; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #E6EDFE; }
.form-control:disabled { background: #F1F2FA; color: var(--ink-3); cursor: not-allowed; }
.field-aside { display: flex; justify-content: flex-end; margin-top: 8px; }
.link-quiet { font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.btn-login {
  display: block; width: 100%; padding: 13px; border: 1px solid transparent;
  background: var(--primary); color: #fff; text-align: center; text-decoration: none;
  border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .16s ease;
}
.btn-login:hover { background: var(--primary-dk); color: #fff; }
.error-msg { background: #FBEDEB; color: #A03A32; border: 1px solid #F1D3CF; padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-top: 18px; font-weight: 500; }
.notice { padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; line-height: 1.55; }
.notice-ok { background: #EAF5EE; color: #1E6A43; border: 1px solid #CFE6D8; }
.login-foot { margin-top: 26px; font-size: 14px; color: var(--ink-3); }
.login-foot a, .login-links a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.login-links { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.login-links a { font-weight: 600; }

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-panel { padding: 40px 24px; min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
