* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.page {
  display: flex;
  width: 900px;
  max-width: 100%;
  min-height: 560px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}
.left {
  width: 42%;
  background: #0f3460;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
}
.left-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.left-logo-mark {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.left-logo-mark span {
  font-size: 13px;
  font-weight: 700;
  color: #0f3460;
  letter-spacing: -0.5px;
}
.left-logo-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.left-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}
.left-headline {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.left-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  max-width: 270px;
}
.left-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}
.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  flex-shrink: 0;
}
.left-footer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
}
.right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #f9fafb;
}
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 36px;
  width: 100%;
  max-width: 340px;
}
.card-header {
  text-align: center;
  margin-bottom: 28px;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 5px;
}
.card-sub {
  font-size: 12.5px;
  color: #6b7280;
}
.field {
  margin-bottom: 16px;
}
.label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 13px;
  color: #111827;
  background: #fff;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.input-wrap {
  position: relative;
}
.input-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}
.remember input {
  accent-color: #0f3460;
  cursor: pointer;
}
.forgot {
  font-size: 12px;
  color: #1d4ed8;
  cursor: pointer;
  text-decoration: none;
}
.forgot:hover {
  text-decoration: underline;
}
.btn-login {
  width: 100%;
  padding: 11px;
  background: #0f3460;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
.btn-login:hover {
  background: #1a4a7a;
}
.btn-login:active {
  background: #0a2440;
}
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  font-size: 11.5px;
  color: #9ca3af;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.sso-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.15s;
}
.sso-btn:hover {
  background: #f3f4f6;
}
.ms-logo {
  display: flex;
  gap: 2px;
  width: 16px;
  height: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.ms-logo span {
  width: 7px;
  height: 7px;
  border-radius: 1px;
}
.card-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.6;
}
.error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 12px;
  color: #7f1d1d;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  display: none;
}
.error.visible {
  display: flex;
}
