.login-page {
  background: var(--bg);
}

.login-shell {
  min-height: 100dvh;
  padding: calc(var(--header-height) + 1.2rem) 1rem 2rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(72, 200, 87, 0.12), transparent 22rem),
    linear-gradient(130deg, #111518 0%, #080a0b 58%, #14191c 100%);
}

.login-panel {
  width: min(100%, 28rem);
  padding: 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
  background: rgba(18, 22, 25, 0.94);
  box-shadow: var(--shadow);
  color: var(--text);
}

.login-kicker {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-panel h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.login-intro,
.login-notice {
  margin: 0.75rem 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.login-buttons {
  display: grid;
  gap: 0.7rem;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.auth-field {
  position: relative;
  min-width: 0;
  display: block;
}

.auth-field > span {
  position: absolute;
  top: -0.42rem;
  left: 0.7rem;
  z-index: 1;
  padding: 0 0.3rem;
  background: #121619;
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.1;
}

.auth-field input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 0.9rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.42rem;
  background: rgba(10, 13, 15, 0.52);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-field input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.auth-field input:focus {
  border-color: var(--accent);
  background: rgba(10, 13, 15, 0.74);
  box-shadow: 0 0 0 0.18rem rgba(72, 200, 87, 0.12);
}

.auth-field:focus-within > span {
  color: var(--accent);
}

.auth-field-hint {
  margin: -0.5rem 0 0 0.85rem;
  color: var(--quiet);
  font-size: 0.72rem;
}

.auth-switch {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.auth-switch a,
.auth-consent a {
  color: #82dc8c;
  text-underline-offset: 0.18rem;
}

.auth-switch a:hover,
.auth-switch a:focus-visible,
.auth-consent a:hover,
.auth-consent a:focus-visible {
  color: var(--text);
}

.auth-divider {
  margin: 1.15rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
  flex: 1 1 auto;
}

.auth-divider span {
  flex: 0 0 auto;
}

.auth-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(220, 63, 63, 0.38);
  border-radius: 0.4rem;
  background: rgba(220, 63, 63, 0.12);
  color: #ffc2c2;
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-error ul {
  margin: 0;
  padding-left: 1.15rem;
}

.auth-error li + li {
  margin-top: 0.3rem;
}

.auth-consent {
  padding: 0.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.5;
}

.auth-consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.registration-panel {
  width: min(100%, 36rem);
}

.login-legal {
  margin: 1rem 0 0;
  color: var(--quiet);
  font-size: 0.76rem;
  line-height: 1.55;
  text-align: center;
}

.login-legal a {
  color: var(--muted);
  text-underline-offset: 0.18rem;
}

.login-legal a:hover,
.login-legal a:focus-visible {
  color: var(--accent);
}

.login-provider,
.login-action {
  min-height: 3.2rem;
  padding: 0.75rem 1rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text);
  background: var(--panel-light);
  border: 1px solid var(--line-strong);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.login-provider:hover,
.login-provider:focus-visible,
.login-action:hover,
.login-action:focus-visible {
  border-color: rgba(72, 200, 87, 0.5);
  background: rgba(72, 200, 87, 0.12);
  outline: none;
}

.login-provider:active,
.login-action:active {
  transform: translateY(0.05rem);
}

.login-provider-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.login-provider-google .login-provider-icon {
  color: #4285f4;
  background: #fff;
}

.login-provider-facebook {
  background: #1877f2;
  border-color: #1877f2;
}

.login-provider-facebook .login-provider-icon {
  color: #1877f2;
  background: #fff;
  font-size: 1.25rem;
}

.login-provider-seznam {
  background: #de0000;
  border-color: #de0000;
}

.login-provider-seznam .login-provider-icon {
  color: #de0000;
  background: #fff;
}

.login-action-primary {
  width: 100%;
  background: var(--accent);
  border-color: var(--accent);
  color: #071009;
}

.login-action-danger {
  background: rgba(220, 63, 63, 0.14);
  border-color: rgba(220, 63, 63, 0.36);
  color: #ffb7b7;
}

.login-action-danger:hover,
.login-action-danger:focus-visible {
  background: rgba(220, 63, 63, 0.22);
  border-color: rgba(220, 63, 63, 0.58);
  color: #ffd2d2;
}

.login-action-secondary {
  background: var(--panel-light);
  border-color: var(--line-strong);
}

.profile-logout {
  margin-top: 1.2rem;
  width: 100%;
}

.profile-danger-zone {
  margin-top: 1.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-danger-zone strong,
.profile-danger-zone span {
  display: block;
}

.profile-danger-zone strong {
  color: var(--text);
  font-size: 0.86rem;
}

.profile-danger-zone span {
  margin-top: 0.2rem;
  color: var(--quiet);
  font-size: 0.75rem;
  line-height: 1.45;
}

.profile-delete-link {
  padding: 0.45rem 0;
  flex: 0 0 auto;
  color: #e79292;
  font-size: 0.78rem;
  font-weight: 750;
  text-underline-offset: 0.2rem;
}

.profile-delete-link:hover,
.profile-delete-link:focus-visible {
  color: #ffc2c2;
}

.login-notice-success {
  margin-bottom: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(72, 200, 87, 0.35);
  border-radius: 0.4rem;
  background: rgba(72, 200, 87, 0.1);
  color: #c9f4ce;
}

.delete-account-panel {
  width: min(100%, 34rem);
}

.delete-account-warning {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.delete-account-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.delete-account-list li + li {
  margin-top: 0.35rem;
}

.delete-account-error {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(220, 63, 63, 0.38);
  border-radius: 0.4rem;
  background: rgba(220, 63, 63, 0.12);
  color: #ffc2c2;
  line-height: 1.5;
}

.delete-account-form {
  margin-top: 1.2rem;
}

.delete-account-confirm {
  min-height: 3.4rem;
  padding: 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text);
  cursor: pointer;
}

.delete-account-confirm:hover {
  border-color: rgba(220, 63, 63, 0.42);
  background: rgba(220, 63, 63, 0.06);
}

.delete-account-confirm input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  flex: 0 0 auto;
  accent-color: #dc3f3f;
}

.delete-account-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.delete-account-actions .login-action {
  width: 100%;
  cursor: pointer;
}

.login-user-card,
.profile-card {
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-user-avatar,
.profile-avatar {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.login-user-name,
.login-user-email {
  margin: 0;
}

.login-user-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.login-user-email {
  margin-top: 0.2rem;
  color: var(--muted);
}

.login-config {
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(197, 150, 54, 0.34);
  border-radius: 0.45rem;
  background: rgba(197, 150, 54, 0.1);
  color: #f4ead2;
  font-size: 0.78rem;
  line-height: 1.45;
}

.login-config p {
  margin: 0.4rem 0 0;
}

.login-config p:first-child {
  margin-top: 0;
}

.login-config code {
  color: #fff;
  word-break: break-word;
}

.profile-panel {
  width: min(100%, 34rem);
}

.profile-avatar-empty {
  display: grid;
  place-items: center;
  background: rgba(72, 200, 87, 0.14);
  color: var(--accent);
  font-size: 1.65rem;
  font-weight: 900;
}

.profile-data {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}

.profile-data div {
  min-width: 0;
}

.profile-data dt {
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-data dd {
  margin: 0.1rem 0 0;
  color: var(--text);
  word-break: break-word;
}

@media (max-width: 520px) {
  .login-shell {
    align-items: start;
    padding-inline: 0.85rem;
  }

  .login-panel {
    padding: 1rem;
  }

  .auth-field-row {
    grid-template-columns: 1fr;
  }

  .delete-account-actions {
    grid-template-columns: 1fr;
  }

  .profile-danger-zone {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}

.login-remember {
	margin-bottom: 0.35rem;
	padding: 0.9rem;
	border: 1px solid var(--line-strong);
	border-radius: 0.42rem;
	background: rgba(72, 200, 87, 0.06);
}

.login-remember strong {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--text);
	font-size: 0.9rem;
}

.login-remember span span {
	display: block;
}

#login-form .auth-divider {
	margin: 0.3rem 0 0.6rem;
}

.link-provider-form {
	margin-top: 0.85rem;
}

.auth-forgot {
	margin: 0;
	text-align: right;
}

.login-provider-icon img {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.login-legal { margin: 0 0 1rem; text-align: left; }

.auth-login-links {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	text-align: left;
	font-size: 0.78rem;
}
.auth-login-links a:last-child { text-align: right; }

.private-login-page .login-shell { padding: 1.5rem 1rem; align-items: center; }
