:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --ink: #17201d;
  --muted: #5f6f68;
  --line: #dbe4df;
  --accent: #0b6b57;
  --accent-strong: #084f41;
  --accent-soft: #d9eee8;
  --focus: #b45309;
  --shadow: 0 24px 70px rgba(20, 35, 30, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(11, 107, 87, 0.1), transparent 38%),
    linear-gradient(315deg, rgba(180, 83, 9, 0.08), transparent 34%),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.brand-panel {
  display: grid;
  gap: 28px;
  max-width: 620px;
}

.brand-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(11, 107, 87, 0.22);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand-copy {
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.compact-copy {
  font-size: 0.98rem;
  line-height: 1.6;
}

.login-panel {
  width: 100%;
  border: 1px solid rgba(219, 228, 223, 0.9);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.login-header {
  margin-bottom: 28px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.label-row,
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

label,
.remember-row {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfdfc;
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
  color: #8b9993;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="url"],
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 128px;
  padding: 12px 14px;
  resize: vertical;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 107, 87, 0.14);
}

.remember-row {
  justify-content: flex-start;
  color: var(--muted);
  font-weight: 600;
}

.remember-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

button:hover {
  background: var(--accent-strong);
  box-shadow: 0 12px 24px rgba(11, 107, 87, 0.2);
  transform: translateY(-1px);
}

.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.button-link:hover {
  color: #ffffff;
  background: var(--accent-strong);
  text-decoration: none;
}

.secondary-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.signup-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.form-message.is-error {
  color: #b42318;
}

.app-body {
  background: var(--bg);
}

.workspace-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.workspace-header h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.workspace-panel {
  max-width: 720px;
  border: 1px solid rgba(219, 228, 223, 0.9);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.project-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

@media (max-width: 780px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
    padding: 28px 0;
  }

  .brand-panel {
    gap: 18px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.5rem, 16vw, 4.2rem);
  }

  .brand-copy {
    font-size: 1rem;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .login-shell {
    width: min(100% - 20px, 1120px);
  }

  .login-panel {
    padding: 22px 18px;
  }

  .label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
