.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6eb6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.04em;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 20px;
  text-align: center;
  line-height: 1.3;
}

.auth-sub {
  margin: 0 0 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.auth-oauth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.auth-oauth-btn:hover {
  border-color: var(--accent);
  background: var(--panel);
}
.auth-oauth-btn.disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-submit {
  margin-top: 4px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #04101f;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.auth-submit:hover { filter: brightness(1.08); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-error {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(217, 83, 79, 0.15);
  color: var(--offline);
  font-size: 13px;
  display: none;
}
.auth-error.visible { display: block; }

.auth-success {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(62, 207, 142, 0.15);
  color: var(--online);
  font-size: 13px;
  display: none;
  margin-bottom: 12px;
}
.auth-success.visible { display: block; }

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-legal {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}
.auth-back {
  display: block;
  text-align: center;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}
.auth-back:hover { text-decoration: underline; }

.auth-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.auth-top-row .auth-back {
  margin-bottom: 0;
  text-align: left;
}
.auth-top-row .lang-switcher { flex-shrink: 0; }
