﻿:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 70% 15%,
      rgba(39, 104, 153, 0.22),
      transparent 34rem
    ),
    #06111f;

  color: #f7f9fc;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.login-card {
  width: min(100%, 500px);

  background: rgba(15, 29, 48, 0.96);

  border:
    1px solid
    rgba(148, 163, 184, 0.16);

  border-radius: 24px;

  padding: 32px;

  box-shadow:
    0 24px 70px
    rgba(0, 0, 0, 0.3);
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;

  font-size: 14px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      #5ee1b7,
      #38bdf8
    );

  color: #071521;

  font-weight: 900;
}

.language-toggle {
  border:
    1px solid
    rgba(148, 163, 184, 0.2);

  background: #15263a;
  color: #e2e8f0;

  border-radius: 9px;

  padding: 8px 11px;

  cursor: pointer;
}

.login-heading {
  margin-top: 48px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;

  color: #5ee1b7;

  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.15em;
}

h1 {
  margin: 0;

  font-size:
    clamp(36px, 7vw, 52px);

  line-height: 1.03;

  letter-spacing: -0.045em;
}

.login-heading > p:last-child {
  margin-top: 16px;

  color: #94a3b8;

  line-height: 1.6;
}

form {
  display: grid;
  gap: 10px;
}

label {
  margin-top: 7px;

  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;

  border:
    1px solid
    rgba(148, 163, 184, 0.18);

  background: #0a1726;

  color: #f8fafc;

  border-radius: 10px;

  padding: 14px 15px;

  outline: none;
}

input:focus {
  border-color: #5ee1b7;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #15263a;
  color: #5ee1b7;
  outline: none;
}

.forgot-link {
  justify-self: end;
  margin-top: 2px;
  color: #5ee1b7;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  margin-top: 13px;

  width: 100%;

  border: 0;

  border-radius: 10px;

  padding: 14px;

  background:
    linear-gradient(
      90deg,
      #5ee1b7,
      #42c9eb
    );

  color: #06111f;

  font-weight: 900;

  cursor: pointer;
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status {
  min-height: 24px;

  margin: 5px 0 0;

  color: #fbbf24;

  font-size: 13px;
}

.status.success {
  color: #5ee1b7;
}

.status.error {
  color: #fda4af;
}

.login-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;

  margin-top: 25px;

  color: #94a3b8;

  font-size: 13px;
}

.login-footer a {
  color: #5ee1b7;

  text-decoration: none;

  font-weight: 800;
}

@media (max-width: 560px) {
  .login-card {
    padding: 25px 20px;
  }
}
