* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background: url("assets/background.png") center center / cover no-repeat;
  z-index: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(128, 30, 50, 0.88) 0%,
    rgba(100, 25, 45, 0.85) 40%,
    transparent 65%
  );
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  margin: 0 24px;
  padding: 32px 36px;
  background: rgba(60, 18, 35, 0.75);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.logo-accent {
  color: #f59e0b;
}

.tagline {
  margin-top: 6px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.form .field {
  margin-bottom: 18px;
}

.form .field label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
  font-weight: 500;
}

.form input[type="text"],
.form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form input:focus {
  border-color: #f59e0b;
  background: rgba(255, 255, 255, 0.12);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary {
  background: #f59e0b;
  color: #1a1a1a;
}

.btn-primary:hover:not(:disabled) {
  background: #fbbf24;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
}

.message {
  margin-top: 16px;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.25em;
}

.message.error {
  color: #fca5a5;
}

.message.success {
  color: #86efac;
}

.message:empty {
  visibility: hidden;
}

.field-confirm {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
