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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  color: #f5f0e6;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  background: url('/admin/bg.png') center / cover no-repeat;
  transform: scale(1.03);
  z-index: 0;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.login-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(212, 175, 55, 0.15) inset;
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  width: min(200px, 70%);
  height: auto;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.35));
}

.login-badge {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(135deg, #e8c547 0%, #c9a227 50%, #f2d37a 100%);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

.login-brand h1 {
  font-size: 22px;
  font-weight: 700;
  color: #f2d37a;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.login-brand p {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.55);
  font-weight: 400;
}

.login-error {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(120, 30, 30, 0.45);
  border: 1px solid rgba(220, 80, 80, 0.45);
  color: #ffb4b4;
  font-size: 13px;
  line-height: 1.45;
}

.login-error.show {
  display: block;
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(242, 211, 122, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: rgba(212, 175, 55, 0.55);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.input-wrap input:focus {
  border-color: rgba(242, 211, 122, 0.65);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.toggle-pass {
  position: absolute;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(212, 175, 55, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.toggle-pass svg {
  width: 18px;
  height: 18px;
}

.toggle-pass:hover,
.toggle-pass.active {
  color: #f2d37a;
  background: rgba(212, 175, 55, 0.1);
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a1208;
  background: linear-gradient(135deg, #f2d37a 0%, #c9a227 45%, #e8c547 100%);
  box-shadow:
    0 4px 20px rgba(212, 175, 55, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 8px 28px rgba(212, 175, 55, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.login-submit:active:not(:disabled) {
  transform: translateY(0);
}

.login-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

.login-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  color: rgba(245, 240, 230, 0.35);
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 22px 22px;
    border-radius: 16px;
  }

  .login-logo {
    width: 160px;
  }

  .login-brand h1 {
    font-size: 20px;
  }
}
