.login-card {
  width: 100%;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  display: flex;
  overflow: hidden;
  height: 75vh;
}

.login-card-height {
  flex: 1;
  min-width: 360px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-color);
}

.login-image {
  display: flex;
  flex: 1;
}

.login-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-logo {
  height: 48px;
  width: auto;
}

.login-title {
  font-size: 26px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.login-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 1rem 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.login-divider span {
  padding: 0 1rem;
}

.oauth-button-wrapper {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.login-footer {
  margin-top: 2rem;
}

#telegram-login-container {
  margin-top: 0 !important;
}

.btn-login {
  height: 30px;
  padding: 0 0.6rem;
}

.hero {
  text-align: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-servers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
  justify-content: center;
}

@media (max-width: 600px) {
  .hero-servers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .server-badge {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .server-badge:last-child:nth-child(odd) {
    grid-column: 1 / span 2;
    justify-self: center;
    width: fit-content;
    min-width: calc(50% - 0.375rem);
  }
}

@media (max-width: 480px) {
  .hero-servers {
    display: grid;
  }

  .server-badge {
    justify-content: center;
    width: 100%;
  }
}

.login-line {
  position: relative;
  height: 20px;
  width: 100%;
  margin: 2rem 0;
}

.login-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url(/static/svg/line.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.dashboard {
  padding: 1rem 0;
}

.dashboard-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.dashboard-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-header {
  margin-bottom: 1rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-details {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--primary);
  object-fit: cover;
}

.profile-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

.profile-email {
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer {
    justify-content: center;
    flex-direction: column-reverse;
  }

  .hero-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .user-name {
    display: none;
  }

  .login-container {
    padding: 0 0.75rem;
  }

  .footer .container {
    flex-direction: column;
  }

  .link-name {
    font-size: 0.8rem !important;
  }

  .card-full-width-admin {
    grid-template-columns: 1fr;
  }

  .node-status-meta .badge-success {
    display: none !important;
  }

  .node-status-item {
    align-items: baseline !important;
    gap: 0.5rem !important;
    flex-direction: column !important;
  }

  .primary-actions {
    flex-wrap: wrap;
  }

  .free-key-card {
    flex-direction: column;
  }
}

