:root {
  --bg: #0b1118;
  --bg-card: #111a24;
  --rose: #6ee7c8;
  --accent: #2fb893;
  --accent-soft: rgba(47, 184, 147, 0.22);
  --text: #e6edf5;
  --text-muted: rgba(230, 237, 245, 0.6);
  --border: rgba(230, 237, 245, 0.1);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --radius: 20px;
}

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

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(47, 184, 147, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(125, 211, 252, 0.06), transparent 50%);
  pointer-events: none;
}

.login-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px 32px;
}

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

.login-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}

.login-title {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.login-sub {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  outline: none;
  border-color: rgba(47, 184, 147, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 184, 147, 0.18);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;
}

.password-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.login-error {
  display: none;
  font-size: 0.9rem;
  color: #f4a5a5;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}

.login-error.visible {
  display: block;
}

.login-submit {
  margin-top: 4px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), #1f8f72);
  color: #fff;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s;
}

.login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.login-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
