* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: #f7f7f5;
  color: #1c1c1e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
}

.login-shell {
  width: 100%;
  max-width: 384px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-header {
  margin-bottom: 8px;
  text-align: center;
}

.login-header h1 {
  margin: 0 0 4px;
  color: #27272a;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.login-header p {
  margin: 0;
  color: #71717a;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  background-color: #ffffff;
}

.login-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #e4e4e7;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.login-title-group span {
  display: block;
  color: #a1a1aa;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.login-title-group h2 {
  margin: 4px 0 0;
  color: #27272a;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  color: #71717a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.login-input-shell {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  background-color: #fafafa;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.login-input-shell:focus-within {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.login-input {
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #27272a;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}

.login-input::placeholder {
  color: #a1a1aa;
}

.login-message {
  min-height: 20px;
  margin: 4px 0 0;
  color: #ef4444;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.login-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 16px;
  border: 0;
  border-radius: 2px;
  background-color: #27272a;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 180ms ease;
}

.login-button:hover {
  background-color: #3f3f46;
}

.login-button:active {
  background-color: #18181b;
}

.login-button:disabled {
  cursor: wait;
  background-color: #52525b;
}

.login-button-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  display: block;
}

.login-button svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  display: block;
}

.login-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: #a1a1aa;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .login-card {
    padding: 32px;
  }
}
