@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root {
  color-scheme: dark;
  --bg-primary: #0f172a;
  --bg-secondary: rgba(15, 23, 42, 0.75);
  --card-border: rgba(96, 165, 250, 0.35);
  --accent: #60a5fa;
  --accent-strong: #3b82f6;
  --text-primary: #f8fafc;
  --text-muted: rgba(226, 232, 240, 0.75);
  --error-bg: rgba(239, 68, 68, 0.18);
  --error-border: rgba(248, 113, 113, 0.55);
  --success-bg: rgba(34, 197, 94, 0.18);
  --success-border: rgba(74, 222, 128, 0.55);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 16px 48px;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(96, 165, 250, 0.3) 0%, rgba(15, 23, 42, 0.92) 55%, #020617 100%),
    linear-gradient(160deg, rgba(30, 64, 175, 0.6) 0%, rgba(59, 130, 246, 0) 60%);
  color: var(--text-primary);
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1200;
}

.language-switcher--floating {
  position: fixed;
  top: 18px;
  right: 18px;
}

.language-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(14px);
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.language-switcher__toggle:hover,
.language-switcher__toggle:focus {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.28);
  background: rgba(15, 23, 42, 0.84);
}

.language-switcher.is-open .language-switcher__toggle,
.language-switcher:focus-within .language-switcher__toggle {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 18px 38px rgba(59, 130, 246, 0.32);
  background: rgba(96, 165, 250, 0.18);
}

.language-switcher__flag {
  font-size: 1.3rem;
  line-height: 1;
  pointer-events: none;
}

.language-switcher__chevron {
  width: 14px;
  height: 14px;
  fill: rgba(226, 232, 240, 0.7);
  transition: transform 0.18s ease;
}

.language-switcher.is-open .language-switcher__chevron {
  transform: rotate(180deg);
}

.language-switcher__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  margin: 0;
  padding: 8px;
  list-style: none;
  min-width: 160px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  z-index: 1400;
}

.language-switcher.is-open .language-switcher__menu,
.language-switcher:focus-within .language-switcher__menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.language-switcher__option {
  width: 100%;
}

.language-switcher__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.language-switcher__link:hover,
.language-switcher__link:focus {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.35);
}

.language-switcher__link.is-active {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(96, 165, 250, 0.5);
}

.login-container {
  width: 100%;
  max-width: 440px;
}

.login-card {
  position: relative;
  padding: 48px 42px 40px;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.55),
    0 1px 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: -120px -120px 60% -120px;
  background: radial-gradient(circle at 50% 10%, rgba(96, 165, 250, 0.4), transparent 70%);
  opacity: 0.6;
  z-index: 0;
}

.login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--card-border);
  opacity: 0.5;
  pointer-events: none;
}

.brand,
.login-form,
.support-info,
#load {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-accent {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-mark {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: #0b1120;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  position: absolute;
  top: -42px;
  right: -36px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 60%);
  z-index: -1;
}

#title {
  margin: 0;
  font-size: clamp(1.9rem, 2.4vw + 1rem, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.65);
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(15, 23, 42, 0.85);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(96, 165, 250, 0.16);
}

.input-icon svg {
  width: 22px;
  height: 22px;
  fill: rgba(148, 163, 184, 0.95);
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  outline: none;
}

.input-wrapper input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.primary-action {
  margin-top: 8px;
  padding: 15px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #0b1120;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 18px 35px rgba(59, 130, 246, 0.35);
}

.primary-action:hover,
.primary-action:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(59, 130, 246, 0.45);
  filter: brightness(1.03);
}

.primary-action:active {
  transform: translateY(1px);
}

#load {
  min-height: 48px;
  margin-bottom: 16px;
}

.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(96, 165, 250, 0.32);
  box-shadow:
    0 18px 45px rgba(59, 130, 246, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: var(--accent);
  animation: spin 0.75s linear infinite;
}

.loading-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
}

@keyframes spin {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

fieldset {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border-width: 1px;
  border-style: solid;
  font-size: 0.9rem;
}

fieldset.error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: #fecaca;
}

fieldset.succes {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: #bbf7d0;
}

.support-info {
  margin-top: 28px;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 480px) {
  body {
    padding: 60px 12px 32px;
  }

  .language-switcher--floating {
    top: 12px;
    right: 12px;
  }

  .language-switcher__toggle {
    height: 38px;
    padding: 0 14px;
  }

  .login-card {
    padding: 40px 28px 32px;
  }

  .brand-accent {
    width: 56px;
    height: 56px;
  }
}