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

body {
  background: #0d1117;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrap {
  width: 100%;
  max-width: 380px;
  padding: 0 16px;
}

.login-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 36px 32px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.logo-icon { font-size: 28px; }
.logo-name { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }

.login-sub {
  color: #8b949e;
  font-size: 13px;
  margin-bottom: 28px;
}

.login-error {
  background: #2d1117;
  border: 1px solid #f85149;
  border-radius: 6px;
  color: #f85149;
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 16px;
}
.login-error a { color: #ff9b9b; }

.login-info {
  background: #0f2a1a;
  border: 1px solid #2d5a2d;
  border-radius: 6px;
  color: #7ee787;
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.login-legal { text-align: center; margin-top: 20px; font-size: 11px; color: #6e7681; }
.login-legal a { color: #8b949e; text-decoration: none; }
.login-legal a:hover { color: #58a6ff; }

.login-check {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 12px; font-size: 12px; color: #8b949e; line-height: 1.5; cursor: pointer;
}
.login-check input { width: auto; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.login-check a { color: #58a6ff; text-decoration: none; }
.login-check a:hover { text-decoration: underline; }

.login-links { text-align: right; margin-top: 8px; }
.login-links a { color: #8b949e; font-size: 12px; text-decoration: none; }
.login-links a:hover { color: #58a6ff; }

form { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 12px;
  color: #8b949e;
  margin-top: 8px;
}

input {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e6edf3;
  font-size: 14px;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: #58a6ff; }

button[type=submit] {
  margin-top: 18px;
  background: #238636;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
button[type=submit]:hover    { opacity: 0.85; }
button[type=submit]:disabled { opacity: 0.45; cursor: default; }

.login-register {
  text-align: center;
  font-size: 13px;
  color: #8b949e;
  margin-top: 20px;
}
.login-register a { color: #58a6ff; text-decoration: none; }
.login-register a:hover { text-decoration: underline; }
