/* Login page — Apple "liquid glass" styling. Depends on theme.css tokens. */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(160deg, var(--color-bg-1), var(--color-bg-2));
  transition: background 0.4s ease;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  transition: background 0.4s ease;
}
.bg-blob--1 { width: 480px; height: 480px; top: -160px; left: -120px; background: var(--blob-1); }
.bg-blob--2 { width: 420px; height: 420px; bottom: -140px; right: -100px; background: var(--blob-2); }
.bg-blob--3 { width: 360px; height: 360px; bottom: 8%; left: 10%; background: var(--blob-3); }

/* .lang-switcher / .theme-toggle component styles live in theme.css now —
   shared with the app header. This page just positions them. */
.top-controls {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  border-radius: 28px;
  padding: 40px 36px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.login-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.35);
  flex-shrink: 0;
}
.login-brand__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.login-subtitle {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.input-wrap {
  position: relative;
}
.input-wrap input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-wrap input::placeholder {
  color: var(--text-muted);
}
.input-wrap input:focus {
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.15);
}
.input-wrap.has-toggle input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.password-toggle:hover {
  color: var(--text-primary);
}
.password-toggle svg {
  width: 18px;
  height: 18px;
}
.password-toggle .icon-hide {
  display: none;
}
.password-toggle.is-active .icon-show {
  display: none;
}
.password-toggle.is-active .icon-hide {
  display: block;
}

.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  font-size: 13px;
  margin-bottom: 18px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.45);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

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

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