/* Скрыть только меню навигации и вкладки, оставить название и поиск */
.md-tabs,
.md-header__button.md-icon,
.md-header__source {
  display: none !important;
}

/* Центрирование контента */
.login-container {
  max-width: 500px;
  margin: 4rem auto;
  padding: 3rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: 1rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

#error-message {
  display: none;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 1.2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(245, 87, 108, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#error-message strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}

#tg-login {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

.help-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.help-section .md-button {
  border-radius: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--md-default-fg-color);
  width: 100%;
}

.help-section .md-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: rgba(255, 255, 255, 0.08);
}

.help-text {
  color: var(--md-default-fg-color--light);
  font-size: 0.9rem;
  margin-top: 0;
  line-height: 1.6;
  text-align: left;
}

.help-text p {
  margin: 0 0 1rem 0;
  color: var(--md-default-fg-color--light);
}

.help-text strong {
  color: var(--md-default-fg-color);
}

.help-details {
  margin-top: 1rem;
  padding: 0;
  background: none;
  border: none;
}

.help-details summary {
  cursor: pointer;
  color: var(--md-default-fg-color--light);
  font-weight: normal;
  font-size: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
  outline: none;
}

.help-details summary::-webkit-details-marker {
  display: none;
}

.help-details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4rem;
  transition: transform 0.15s ease;
  font-size: 0.9em;
  color: var(--md-default-fg-color--light);
}

.help-details[open] summary::before {
  transform: rotate(90deg);
}

.help-details summary:hover {
  color: var(--md-default-fg-color);
}

.details-content {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.9rem;
}

.details-content p {
  margin: 0.8rem 0 0.3rem 0;
  color: var(--md-default-fg-color--light);
}

.details-content p:first-child {
  margin-top: 0;
}

.details-content ol {
  margin: 0.5rem 0 1rem 1.2rem;
  padding: 0;
  color: var(--md-default-fg-color--light);
}

.details-content li {
  margin: 0.3rem 0;
  line-height: 1.5;
}

.details-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  font-family: monospace;
  color: var(--md-typeset-a-color);
}

.features {
  margin: 2rem 0;
  text-align: left;
  padding: 0 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--md-default-fg-color--light);
}

.feature-item::before {
  content: "✓";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  margin-right: 1rem;
  text-align: center;
  line-height: 24px;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.md-typeset .admonition, .md-typeset details {
  border-color: transparent !important;
  padding: 0 !important;
}

.md-typeset .admonition-title:before, .md-typeset summary:before {
  display: none !important;
}

[dir=ltr] .md-typeset .admonition-title, [dir=ltr] .md-typeset summary{
  padding-left: 1rem !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.md-typeset summary:after {
  top: 1.4rem !important;
}
