.auth-top-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.auth-top-btn {
  border: 1px solid #5f4a00;
  background: linear-gradient(180deg, #f6cb44 0%, #f3b300 100%);
  color: #111;
  font-weight: 700;
  height: 30px;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
}

.auth-top-btn.auth-top-btn-register {
  background: #111;
  color: #f3b300;
  border-color: #5a5a5a;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.auth-overlay.open {
  display: flex;
}

.auth-modal {
  width: 100%;
  max-width: 540px;
  background: #072a2f;
  border: 1px solid #f3b300;
  border-radius: 14px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(243, 179, 0, 0.35);
}

.auth-tabs {
  display: flex;
  gap: 10px;
}

.auth-tab {
  background: transparent;
  border: 1px solid #2f5d63;
  color: #c8dde0;
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  border-color: #f3b300;
  color: #f3b300;
}

.auth-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.auth-body {
  padding: 16px 14px 14px;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-row {
  margin-bottom: 10px;
}

.auth-input {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #2f5d63;
  background: #1a6168;
  color: #fff;
  padding: 0 12px;
  box-sizing: border-box;
}

.auth-mini {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}

.captcha-view {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #2f5d63;
  background: #113f44;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f3b300;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  user-select: none;
}

.auth-note {
  color: #d8e9eb;
  font-size: 13px;
  min-height: 18px;
}

.auth-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.auth-btn {
  flex: 1;
  height: 42px;
  border-radius: 24px;
  border: 1px solid #4b5f63;
  cursor: pointer;
  font-weight: 700;
}

.auth-btn.primary {
  background: linear-gradient(180deg, #ffeec7 0%, #f3b300 100%);
  color: #111;
}

.auth-btn.secondary {
  background: transparent;
  color: #fff;
}

.auth-userbar {
  margin-left: auto;
  color: #f3b300;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 8px;
}

.auth-userbar button {
  height: 28px;
  border-radius: 8px;
  border: 1px solid #5f4a00;
  background: #111;
  color: #f3b300;
  cursor: pointer;
}

@media (max-width: 768px) {
  .topbar {
    justify-content: space-between !important;
  }
  .auth-top-actions {
    display: flex;
    margin-left: 0;
  }
  .auth-top-btn {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }
  .auth-overlay {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }
  .auth-modal {
    max-width: none;
    border-radius: 0;
    min-height: 100vh;
  }
}
