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

html, body {
  height: 100%;
  font-family: 'Consolas', 'Malgun Gothic', monospace;
  background: #07080b;
  color: #e6e6e6;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 59, 59, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 59, 59, 0.06) 0%, transparent 60%),
    #07080b;
  position: relative;
  overflow: hidden;
}

/* 스캔라인 효과 */
.bg-scan {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 59, 59, 0.025) 0px,
      rgba(255, 59, 59, 0.025) 1px,
      transparent 1px,
      transparent 3px
    );
  pointer-events: none;
}

.bg-scan::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 59, 59, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 59, 59, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  text-align: center;
}

/* ───── Brand ───── */
.brand {
  margin-bottom: 30px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: rgba(255, 59, 59, 0.08);
  border: 1px solid rgba(255, 59, 59, 0.4);
  margin-bottom: 16px;
  position: relative;
  box-shadow:
    0 0 0 4px rgba(255, 59, 59, 0.05),
    0 0 30px rgba(255, 59, 59, 0.25);
}

.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #ff3b3b;
}

.brand-mark::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.brand-mark::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.brand-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #fff;
  font-family: 'Consolas', monospace;
}

.brand-title span {
  color: #ff3b3b;
  margin-left: 8px;
  text-shadow: 0 0 12px rgba(255, 59, 59, 0.6);
}

.brand-sub {
  margin-top: 10px;
  font-size: 11px;
  color: #ff3b3b;
  letter-spacing: 3px;
  opacity: 0.8;
}

/* ───── Card ───── */
.login-card {
  background: linear-gradient(180deg, #11141a 0%, #0a0c10 100%);
  border: 1px solid rgba(255, 59, 59, 0.25);
  border-radius: 2px;
  padding: 30px 34px 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 59, 59, 0.08);
  position: relative;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff3b3b, transparent);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 59, 59, 0.2);
}

.card-header h2 {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 3px;
}

.card-header .status {
  font-size: 10px;
  color: #4ade80;
  letter-spacing: 2px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.field {
  text-align: left;
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 10px;
  font-weight: bold;
  color: #ff3b3b;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #07080b;
  border: 1px solid #2a2030;
  border-radius: 2px;
  color: #fff;
  font-size: 13px;
  font-family: 'Consolas', monospace;
  outline: none;
  transition: all 0.15s ease;
}

.field input::placeholder {
  color: #3a3040;
}

.field input:focus {
  border-color: #ff3b3b;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.12);
  background: #0a0a10;
}

.btn-login {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  background: linear-gradient(180deg, #ff3b3b 0%, #c41e1e 100%);
  border: none;
  border-radius: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 3px;
  font-family: 'Consolas', monospace;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow:
    0 4px 16px rgba(255, 59, 59, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-login:hover {
  background: linear-gradient(180deg, #ff5252 0%, #d42626 100%);
  box-shadow:
    0 6px 22px rgba(255, 59, 59, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-footer {
  margin-top: 18px;
  font-size: 10px;
  color: #ff3b3b;
  letter-spacing: 1px;
  opacity: 0.7;
}

.copyright {
  margin-top: 22px;
  font-size: 10px;
  color: #333;
  letter-spacing: 1px;
}
