* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #888888;
  --border: #333333;
  --primary: #00d4ff;
  --primary-text: #000000;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo-icon {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  border: 1px solid var(--text);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Main content */
.login-main {
  padding: 36px 20px 20px;
  max-width: 420px;
  margin: 0 auto;
}

.login-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.login-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 15px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: var(--muted);
}

.form-input:focus {
  border-color: var(--primary);
}

/* Remember password */
.remember-row {
  margin-bottom: 26px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrap input[type="checkbox"] {
  display: none;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--muted);
  border-radius: 2px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-wrap input[type="checkbox"]:checked + .checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-wrap input[type="checkbox"]:checked + .checkbox-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid var(--primary-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 1px;
}

.checkbox-text {
  font-size: 14px;
  color: var(--text);
}

/* Submit button */
.login-submit {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: var(--primary-text);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: opacity 0.2s;
}

.login-submit:active {
  opacity: 0.85;
}

/* Links */
.login-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.login-link:hover {
  text-decoration: underline;
}
