:root {
  --bg: #ffffff;
  --text: #050505;
  --muted: #7a7a7a;
  --border: #e5e7eb;
  --border-strong: #d9dce3;
  --card-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
  --button: #1c1c1c;
  --button-hover: #111111;
  --success-bg: #ecfdf3;
  --success-text: #166534;
  --error-bg: #fef2f2;
  --error-text: #b91c1c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-wrapper,
.placeholder-card {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.brand-name {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark span {
  position: absolute;
  border-left: 3px solid #111111;
  border-radius: 999px;
}

.brand-mark span:nth-child(1) {
  width: 7px;
  height: 12px;
  left: 1px;
}

.brand-mark span:nth-child(2) {
  width: 11px;
  height: 17px;
  left: 5px;
}

.brand-mark span:nth-child(3) {
  width: 15px;
  height: 22px;
  left: 9px;
}

.login-card,
.info-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.login-card {
  padding: 20px 14px 14px;
}

.login-card h1,
.info-card h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle,
.info-card p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 0.52rem;
  line-height: 1.4;
}

.alerts {
  margin-bottom: 18px;
}

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.alert + .alert {
  margin-top: 10px;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label,
.password-heading label {
  font-size: 0.62rem;
  font-weight: 600;
}

.password-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: -4px;
}

.password-heading a,
.register-copy a,
.back-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.password-heading a {
  color: #101010;
  font-size: 0.58rem;
}

input {
  width: 100%;
  height: 23px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 8px;
  font: inherit;
  font-size: 0.58rem;
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #9ca3af;
}

input:focus {
  outline: none;
  border-color: #a3a3a3;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.register-copy {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.58rem;
}

.submit-button {
  margin-top: 2px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: var(--button);
  color: #ffffff;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
  background: var(--button-hover);
}

.submit-button:active {
  transform: translateY(1px);
}

.info-card {
  padding: 30px 24px;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 36px 18px;
    align-items: center;
  }

  .brand {
    gap: 12px;
    margin-bottom: 22px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-mark span {
    border-left-width: 3px;
  }

  .brand-mark span:nth-child(1) {
    width: 9px;
    height: 16px;
    left: 2px;
  }

  .brand-mark span:nth-child(2) {
    width: 15px;
    height: 23px;
    left: 8px;
  }

  .brand-mark span:nth-child(3) {
    width: 21px;
    height: 30px;
    left: 14px;
  }

  .brand-name {
    font-size: 2rem;
  }

  .login-card,
  .info-card {
    padding: 26px 24px 22px;
  }

  .login-card h1,
  .info-card h1 {
    font-size: 1.15rem;
  }

  .subtitle,
  .info-card p,
  .password-heading a,
  .field-group label,
  .password-heading label,
  .register-copy {
    font-size: 0.86rem;
  }

  .subtitle,
  .info-card p {
    margin-bottom: 22px;
    font-size: 0.95rem;
  }

  .password-heading a {
    font-size: 0.84rem;
  }

  input {
    height: 40px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.95rem;
  }

  .register-copy {
    margin-top: 8px;
  }

  .submit-button {
    height: 42px;
    border-radius: 8px;
    font-size: 0.95rem;
  }
}
