@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

body.login {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(34, 197, 94, 0.16), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.18), transparent 40%),
    #0b0f1a;
  color: #e6ebf5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  overflow: hidden;
}

body.login #login {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 28px;
  border-radius: 22px;
  background: rgba(12, 18, 31, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(14px);
}

body.login #login h1 {
  margin-bottom: 18px;
}

body.login #login h1 a {
  background-image: none;
  height: auto;
  width: auto;
  text-indent: 0;
  display: block;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e6ebf5;
}

body.login #login h1 a::before {
  content: "Stocks";
}

body.login #login form {
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.login #login form .input,
body.login #login form input[type="text"],
body.login #login form input[type="password"],
body.login #login form input[type="email"] {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  color: #e6ebf5;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.login #login form .input:focus,
body.login #login form input[type="text"]:focus,
body.login #login form input[type="password"]:focus,
body.login #login form input[type="email"]:focus {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  outline: none;
}

body.login #login form .forgetmenot {
  margin-top: 12px;
}

body.login #login form .forgetmenot label {
  color: rgba(226, 232, 240, 0.78);
}

body.login #login form .forgetmenot label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

body.login #login form .forgetmenot input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.login #login form .forgetmenot label::before {
  content: "";
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: border-color 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

body.login #login form .forgetmenot label::after {
  content: "";
  position: absolute;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
}

body.login #login form .forgetmenot input[type="checkbox"]:checked + label::before {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.6);
}

body.login #login form .forgetmenot input[type="checkbox"]:checked + label::after {
  transform: translateX(20px);
  background: #22c55e;
}

body.login #login form .forgetmenot input[type="checkbox"]:focus + label::before {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

body.login #login form .submit {
  margin-top: 20px;
}

body.login #login form input[type="submit"] {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
  color: #04130a;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.login #login form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(34, 197, 94, 0.35);
}

body.login #login form input[type="submit"]:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

body.login #nav,
body.login #backtoblog {
  text-align: center;
  margin-top: 18px;
}

body.login #backtoblog {
  display: none;
}

body.login #nav a,
body.login #backtoblog a {
  color: rgba(226, 232, 240, 0.7);
  transition: color 0.2s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
  color: #e6ebf5;
}

body.login #language-switcher,
body.login .language-switcher {
  display: none;
}

body.login #login_error,
body.login .message,
body.login .success {
  background: rgba(15, 23, 42, 0.9);
  border-left: 4px solid rgba(56, 189, 248, 0.9);
  color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

@media (max-width: 480px) {
  body.login #login {
    padding: 28px 20px 24px;
  }

  body.login #login h1 a {
    font-size: 24px;
  }
}
